mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
RISC-V: Use __bss_start for the starting point of .bss.
It's more flexible for the positions of .bss and .data.
This commit is contained in:
parent
d4a756f13a
commit
6aa0ab1c5d
@ -27,7 +27,7 @@ _start:
|
|||||||
.option pop
|
.option pop
|
||||||
|
|
||||||
# Clear the bss segment
|
# Clear the bss segment
|
||||||
la a0, _edata
|
la a0, __bss_start
|
||||||
la a2, _end
|
la a2, _end
|
||||||
sub a2, a2, a0
|
sub a2, a2, a0
|
||||||
li a1, 0
|
li a1, 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user