Commit 064223b9 authored by Palmer Dabbelt's avatar Palmer Dabbelt

RISC-V: Stop putting .sbss in .sdata

I don't know why we were doing this, as it's been there since the beginning.
After d841f729e655 ("riscv: force hart_lottery to put in .sdata section") my
guess would be that it made the kernel boot and we forgot to fix it more
cleanly.

The default .bss segment already contains the .sbss section, so we don't need
to do anything additional to ensure the symbols in .sbss continue to work.
Tested-by: default avatarZong Li <zong.li@sifive.com>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent aff77833
...@@ -64,7 +64,6 @@ SECTIONS ...@@ -64,7 +64,6 @@ SECTIONS
*(.sdata*) *(.sdata*)
/* End of data section */ /* End of data section */
_edata = .; _edata = .;
*(.sbss*)
} }
BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0) BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment