From: Hajime Tazaki <thehajime@gmail.com>
To: linux-um@lists.infradead.org
Cc: Hajime Tazaki <thehajime@gmail.com>
Subject: [PATCH] um: place large BSS inputs in an output section
Date: Fri, 9 Oct 2026 14:28:26 +0900 [thread overview]
Message-ID: <20261009052826.179995-1-thehajime@gmail.com> (raw)
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@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
reply other threads:[~2026-10-09 5:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261009052826.179995-1-thehajime@gmail.com \
--to=thehajime@gmail.com \
--cc=linux-um@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox