diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2016-11-04 14:39:40 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-11-09 16:28:09 -0500 |
commit | 90944e40ba1838de4b2a9290cf273f9d76bd3bdd (patch) | |
tree | 7985f736267f3f3cf0021831822b597750cbba63 | |
parent | 82031ea29e454b574bc6f49a33683a693ca5d907 (diff) |
x86/kexec: add -fno-PIE
If the gcc is configured to do -fPIE by default then the build aborts
later with:
| Unsupported relocation type: unknown type rel type name (29)
Tagging it stable so it is possible to compile recent stable kernels as
well.
Cc: stable@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Michal Marek <mmarek@suse.com>
-rw-r--r-- | arch/x86/purgatory/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index ac58c1616408..555b9fa0ad43 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile | |||
@@ -16,6 +16,7 @@ KCOV_INSTRUMENT := n | |||
16 | 16 | ||
17 | KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -MD -Os -mcmodel=large | 17 | KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -MD -Os -mcmodel=large |
18 | KBUILD_CFLAGS += -m$(BITS) | 18 | KBUILD_CFLAGS += -m$(BITS) |
19 | KBUILD_CFLAGS += $(call cc-option,-fno-PIE) | ||
19 | 20 | ||
20 | $(obj)/purgatory.ro: $(PURGATORY_OBJS) FORCE | 21 | $(obj)/purgatory.ro: $(PURGATORY_OBJS) FORCE |
21 | $(call if_changed,ld) | 22 | $(call if_changed,ld) |