diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2017-08-20 07:26:04 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-09-13 16:34:30 -0400 |
commit | 883354afbc109c57f925ccc19840055193da0cc0 (patch) | |
tree | 8280cb3276443190dc2ed23d680476fb4598e1ab | |
parent | d3488649dcd23b7a6e63895274ec69f80e92d4ed (diff) |
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 <thomas@m3y3r.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | arch/um/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index 6ca4f66085c1..b76fcce397a1 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -121,7 +121,7 @@ archheaders: | |||
121 | archprepare: include/generated/user_constants.h | 121 | archprepare: include/generated/user_constants.h |
122 | 122 | ||
123 | LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static | 123 | 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) |
125 | 125 | ||
126 | CFLAGS_NO_HARDENING := $(call cc-option, -fno-PIC,) $(call cc-option, -fno-pic,) \ | 126 | CFLAGS_NO_HARDENING := $(call cc-option, -fno-PIC,) $(call cc-option, -fno-pic,) \ |
127 | $(call cc-option, -fno-stack-protector,) \ | 127 | $(call cc-option, -fno-stack-protector,) \ |