poky/meta/recipes-kernel/kexec
Khem Raj 86970c73bf 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+.

(From OE-Core rev: 049ce8ad241bae31c22b83788e732080f7d04526)

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>
2025-09-11 11:31:57 +01:00
..
kexec-tools kexec-tools: Fix build with LLD linker 2025-09-11 11:31:57 +01:00
kexec-tools_2.0.31.bb kexec-tools: Fix build with LLD linker 2025-09-11 11:31:57 +01:00