2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
* nds32/_sbrk.S: Add .size and .type directive.
This commit is contained in:
parent
c94fff60f1
commit
e669b401f7
@ -1,3 +1,7 @@
|
|||||||
|
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
|
||||||
|
|
||||||
|
* nds32/_sbrk.S: Add .size and .type directive.
|
||||||
|
|
||||||
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
|
2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
|
||||||
|
|
||||||
* nds32/crt0.S: Tweak initialization sqeuence.
|
* nds32/crt0.S: Tweak initialization sqeuence.
|
||||||
|
@ -33,6 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
.extern _impure_ptr /* The first element is _errno. */
|
.extern _impure_ptr /* The first element is _errno. */
|
||||||
.extern _end
|
.extern _end
|
||||||
.global _sbrk
|
.global _sbrk
|
||||||
|
.type _sbrk, @function
|
||||||
|
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
@ -72,6 +73,7 @@ _sbrk:
|
|||||||
movi $r0, -1 /* Reture value is -1. */
|
movi $r0, -1 /* Reture value is -1. */
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.size _sbrk, .-_sbrk
|
||||||
.section .bss
|
.section .bss
|
||||||
.align 2
|
.align 2
|
||||||
heap_end:
|
heap_end:
|
||||||
|
Loading…
Reference in New Issue
Block a user