aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorYeting Kuo <fakepaper56@gmail.com>2021-02-04 15:34:00 +0800
committerCorinna Vinschen <corinna@vinschen.de>2021-02-05 10:29:21 +0100
commit6aa0ab1c5ddeef7a970127c22a1c33a01d801e94 (patch)
tree56c27080af84bb0c2d80d8b9c4ee7242751a3709 /libgloss
parentd4a756f13a3440576c866d0a0cfc3a001f86ad59 (diff)
downloadnewlib-6aa0ab1c5ddeef7a970127c22a1c33a01d801e94.zip
newlib-6aa0ab1c5ddeef7a970127c22a1c33a01d801e94.tar.gz
newlib-6aa0ab1c5ddeef7a970127c22a1c33a01d801e94.tar.bz2
RISC-V: Use __bss_start for the starting point of .bss.
It's more flexible for the positions of .bss and .data.
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/riscv/crt0.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgloss/riscv/crt0.S b/libgloss/riscv/crt0.S
index 160c078..7a4e4e3 100644
--- a/libgloss/riscv/crt0.S
+++ b/libgloss/riscv/crt0.S
@@ -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