public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] RISC-V: Use __bss_start for the starting point of .bss.
@ 2021-02-05 9:32 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2021-02-05 9:32 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6aa0ab1c5ddeef7a970127c22a1c33a01d801e94
commit 6aa0ab1c5ddeef7a970127c22a1c33a01d801e94
Author: Yeting Kuo <fakepaper56@gmail.com>
Date: Thu Feb 4 15:34:00 2021 +0800
RISC-V: Use __bss_start for the starting point of .bss.
It's more flexible for the positions of .bss and .data.
Diff:
---
libgloss/riscv/crt0.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgloss/riscv/crt0.S b/libgloss/riscv/crt0.S
index 160c07853..7a4e4e32c 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-05 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-05 9:32 [newlib-cygwin] RISC-V: Use __bss_start for the starting point of .bss Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).