diff options
Diffstat (limited to 'arch/x86_64/boot/compressed/Makefile')
-rw-r--r-- | arch/x86_64/boot/compressed/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86_64/boot/compressed/Makefile b/arch/x86_64/boot/compressed/Makefile index 705a3e33d7e1..c9f2da7496c1 100644 --- a/arch/x86_64/boot/compressed/Makefile +++ b/arch/x86_64/boot/compressed/Makefile | |||
@@ -7,11 +7,12 @@ | |||
7 | # | 7 | # |
8 | 8 | ||
9 | targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o | 9 | targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o |
10 | EXTRA_AFLAGS := -traditional | ||
11 | 10 | ||
12 | # cannot use EXTRA_CFLAGS because base CFLAGS contains -mkernel which conflicts with | 11 | CFLAGS := -m64 -D__KERNEL__ $(LINUXINCLUDE) -O2 \ |
13 | # -m32 | 12 | -fno-strict-aliasing -fPIC -mcmodel=small \ |
14 | CFLAGS := -m64 -D__KERNEL__ -Iinclude -O2 -fno-strict-aliasing -fPIC -mcmodel=small -fno-builtin | 13 | $(call cc-option, -ffreestanding) \ |
14 | $(call cc-option, -fno-stack-protector) | ||
15 | AFLAGS := $(CFLAGS) -D__ASSEMBLY__ | ||
15 | LDFLAGS := -m elf_x86_64 | 16 | LDFLAGS := -m elf_x86_64 |
16 | 17 | ||
17 | LDFLAGS_vmlinux := -T | 18 | LDFLAGS_vmlinux := -T |