Skip to contentSkip to conversation

um: place large BSS inputs in an output section

PATCH New Hajime Tazaki 1 participant 1 message Oct 9 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

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")
---
 arch/um/kernel/uml.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/kernel/uml.lds.S +1 -1
index 4aabcb7faa38..f6e100143558 100644
@@ -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