Skip to content

Commit 44cc641

Browse files
arndbRussell King (Oracle)
authored andcommitted
ARM: 9138/1: fix link warning with XIP + frame-pointer
When frame pointers are used instead of the ARM unwinder, and the kernel is built using clang with an external assembler and CONFIG_XIP_KERNEL, every file produces two warnings like: arm-linux-gnueabi-ld: warning: orphan section `.ARM.extab' from `net/mac802154/util.o' being placed in section `.ARM.extab' arm-linux-gnueabi-ld: warning: orphan section `.ARM.exidx' from `net/mac802154/util.o' being placed in section `.ARM.exidx' The same fix was already merged for the normal (non-XIP) linker script, with a longer description. Fixes: c39866f ("arm/build: Always handle .ARM.exidx and .ARM.extab sections") Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent eaf6cc7 commit 44cc641

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm/kernel/vmlinux-xip.lds.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ SECTIONS
4040
ARM_DISCARD
4141
*(.alt.smp.init)
4242
*(.pv_table)
43+
#ifndef CONFIG_ARM_UNWIND
44+
*(.ARM.exidx) *(.ARM.exidx.*)
45+
*(.ARM.extab) *(.ARM.extab.*)
46+
#endif
4347
}
4448

4549
. = XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR);

0 commit comments

Comments
 (0)