4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +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:
Yeting Kuo 2021-02-04 15:34:00 +08:00 committed by Corinna Vinschen
parent d4a756f13a
commit 6aa0ab1c5d

View File

@ -27,7 +27,7 @@ _start:
.option pop
# Clear the bss segment
la a0, _edata
la a0, __bss_start
la a2, _end
sub a2, a2, a0
li a1, 0