um: place large BSS inputs in an output section
PATCH 1/1 um: place large BSS inputs in an output section
GNU ld requires input sections matched by a linker script to be assigned to an output section. Place UML's .lbss inputs in a named output section so the linker accepts the static UML linker script.
The .ldata inputs are already collected inside the .data output section, so they do not need the same change.
Fixes 779c65ede680 ("um: link .lbss/.ldata/.lrodata correctly")
Signed-off-by Hajime Tazaki <[email protected]>
--- arch/um/kernel/uml.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/kernel/uml.lds.S +1 -1
@@ -109,7 +109,7 @@ SECTIONS PROVIDE(_bss_start = .); SBSS(0) BSS(0) - *(.lbss .lbss.[0-9a-zA-Z_]* .lbss..L*) + .lbss : { *(.lbss .lbss.[0-9a-zA-Z_]* .lbss..L*) } __bss_stop = .; _end = .; PROVIDE (end = .);
Signature · 1 line
2.43.0