[PATCH] um: place large BSS inputs in an output section
Hajime Tazaki
thehajime at gmail.com
Thu Oct 8 22:28:26 PDT 2026
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 <thehajime at gmail.com>
---
arch/um/kernel/uml.lds.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/um/kernel/uml.lds.S b/arch/um/kernel/uml.lds.S
index 4aabcb7faa38..f6e100143558 100644
--- a/arch/um/kernel/uml.lds.S
+++ b/arch/um/kernel/uml.lds.S
@@ -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 = .);
--
2.43.0
More information about the linux-um
mailing list