]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
kexec-tools: Fix build with LLD linker
authorKhem Raj <raj.khem@gmail.com>
Mon, 8 Sep 2025 21:06:57 +0000 (14:06 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Sep 2025 09:45:09 +0000 (10:45 +0100)
commit049ce8ad241bae31c22b83788e732080f7d04526
tree5a6094a45cf86a7f1ca2b94f2e7b849b90c42b48
parentd1194c1a42fc7877a0c99c77e5291216a11ea5dc
kexec-tools: Fix build with LLD linker

With hardcoded -Ttext,0x10000 and newer toolchains emitting
.note.gnu.property before .text, the link can fail with an overlap.

Provide a minimal linker script that:
  - sets the image base to 0x10000,
  - places .text first at exactly 0x10000,
  - moves .note.gnu.property after .text,
  - optionally fixes .bss at 0x12000.

Works with both ld.bfd and LLD 21+.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/kexec/kexec-tools/0001-Make-the-segment-base-match-pinned-section-address.patch [new file with mode: 0644]
meta/recipes-kernel/kexec/kexec-tools_2.0.31.bb