RISC-V: Stop putting .sbss in .sdata
authorPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 18 Feb 2020 21:17:06 +0000 (13:17 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 3 Mar 2020 18:28:12 +0000 (10:28 -0800)
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: Zong Li <zong.li@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/vmlinux.lds.S

index 1e0193d..a8fb52a 100644 (file)
@@ -64,7 +64,6 @@ SECTIONS
                *(.sdata*)
                /* End of data section */
                _edata = .;
-               *(.sbss*)
        }
 
        BSS_SECTION(PAGE_SIZE, PAGE_SIZE, 0)