From 6aa0ab1c5ddeef7a970127c22a1c33a01d801e94 Mon Sep 17 00:00:00 2001 From: Yeting Kuo Date: Thu, 4 Feb 2021 15:34:00 +0800 Subject: [PATCH] RISC-V: Use __bss_start for the starting point of .bss. It's more flexible for the positions of .bss and .data. --- 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