diff options
-rw-r--r-- | arch/x86/boot/Makefile | 3 | ||||
-rw-r--r-- | arch/x86/boot/compressed/Makefile | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index fb737ce5888d..6633b6e7505a 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile | |||
@@ -57,6 +57,7 @@ $(obj)/cpustr.h: $(obj)/mkcpustr FORCE | |||
57 | # How to compile the 16-bit code. Note we always compile for -march=i386, | 57 | # How to compile the 16-bit code. Note we always compile for -march=i386, |
58 | # that way we can complain to the user if the CPU is insufficient. | 58 | # that way we can complain to the user if the CPU is insufficient. |
59 | KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ | 59 | KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ |
60 | -DDISABLE_BRANCH_PROFILING \ | ||
60 | -Wall -Wstrict-prototypes \ | 61 | -Wall -Wstrict-prototypes \ |
61 | -march=i386 -mregparm=3 \ | 62 | -march=i386 -mregparm=3 \ |
62 | -include $(srctree)/$(src)/code16gcc.h \ | 63 | -include $(srctree)/$(src)/code16gcc.h \ |
@@ -66,7 +67,7 @@ KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ | |||
66 | $(call cc-option, -fno-unit-at-a-time)) \ | 67 | $(call cc-option, -fno-unit-at-a-time)) \ |
67 | $(call cc-option, -fno-stack-protector) \ | 68 | $(call cc-option, -fno-stack-protector) \ |
68 | $(call cc-option, -mpreferred-stack-boundary=2) | 69 | $(call cc-option, -mpreferred-stack-boundary=2) |
69 | KBUILD_CFLAGS += $(call cc-option,-m32) | 70 | KBUILD_CFLAGS += $(call cc-option, -m32) |
70 | KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ | 71 | KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ |
71 | 72 | ||
72 | $(obj)/bzImage: asflags-y := $(SVGA_MODE) | 73 | $(obj)/bzImage: asflags-y := $(SVGA_MODE) |
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index 3ca4c194b8e5..65551c9f8571 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile | |||
@@ -8,6 +8,7 @@ targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma h | |||
8 | 8 | ||
9 | KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 | 9 | KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 |
10 | KBUILD_CFLAGS += -fno-strict-aliasing -fPIC | 10 | KBUILD_CFLAGS += -fno-strict-aliasing -fPIC |
11 | KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING | ||
11 | cflags-$(CONFIG_X86_64) := -mcmodel=small | 12 | cflags-$(CONFIG_X86_64) := -mcmodel=small |
12 | KBUILD_CFLAGS += $(cflags-y) | 13 | KBUILD_CFLAGS += $(cflags-y) |
13 | KBUILD_CFLAGS += $(call cc-option,-ffreestanding) | 14 | KBUILD_CFLAGS += $(call cc-option,-ffreestanding) |