Skip to content

Commit 883354a

Browse files
thomasmeyrichardweinberger
authored andcommitted
um: link vmlinux with -no-pie
Debian's gcc defaults to pie. The global Makefile already defines the -fno-pie option. Link UML dynamic kernel image also with -no-pie to fix the build. Signed-off-by: Thomas Meyer <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent d348864 commit 883354a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/um/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ archheaders:
121121
archprepare: include/generated/user_constants.h
122122

123123
LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
124-
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib
124+
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib $(call cc-option, -no-pie)
125125

126126
CFLAGS_NO_HARDENING := $(call cc-option, -fno-PIC,) $(call cc-option, -fno-pic,) \
127127
$(call cc-option, -fno-stack-protector,) \

0 commit comments

Comments
 (0)