Skip to content

Commit da30705

Browse files
chleroymaddy-kerneldev
authored andcommitted
arch/powerpc: Remove .interp section in vmlinux
When building with CONFIG_RELOCATABLE, there is a .interp section which contains the name of the expected ELF interpreter: Contents of section .interp: c0000000021c1bac 2f757372 2f6c6962 2f6c642e 736f2e31 /usr/lib/ld.so.1 c0000000021c1bbc 00 . That information is useless and even likely wrong. Remove it. Link: linuxppc/issues#434 Signed-off-by: Christophe Leroy <[email protected]> Acked-by: Segher Boessenkool <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/eeaf8fd6628a75d19872ab31cf7e7179e2baef5e.1751366959.git.christophe.leroy@csgroup.eu
1 parent 69bf205 commit da30705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ KBUILD_LDFLAGS += -m elf$(BITS)$(LDEMULATION)
101101
endif
102102

103103
LDFLAGS_vmlinux-y := -Bstatic
104-
LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie
104+
LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie --no-dynamic-linker
105105
LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) += -z notext
106106
LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y)
107107

0 commit comments

Comments
 (0)