diff options
| -rw-r--r-- | arch/powerpc/Makefile | 4 | ||||
| -rw-r--r-- | arch/x86/Makefile | 4 | ||||
| -rw-r--r-- | arch/x86/Makefile.um | 5 |
3 files changed, 0 insertions, 13 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 8a2ce14d68d0..854199c9ab7e 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
| @@ -228,10 +228,6 @@ KBUILD_CFLAGS += $(call cc-option,-mno-vsx) | |||
| 228 | KBUILD_CFLAGS += $(call cc-option,-mno-spe) | 228 | KBUILD_CFLAGS += $(call cc-option,-mno-spe) |
| 229 | KBUILD_CFLAGS += $(call cc-option,-mspe=no) | 229 | KBUILD_CFLAGS += $(call cc-option,-mspe=no) |
| 230 | 230 | ||
| 231 | # Enable unit-at-a-time mode when possible. It shrinks the | ||
| 232 | # kernel considerably. | ||
| 233 | KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) | ||
| 234 | |||
| 235 | # FIXME: the module load should be taught about the additional relocs | 231 | # FIXME: the module load should be taught about the additional relocs |
| 236 | # generated by this. | 232 | # generated by this. |
| 237 | # revert to pre-gcc-4.4 behaviour of .eh_frame | 233 | # revert to pre-gcc-4.4 behaviour of .eh_frame |
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index f5d7f4134524..58d82e9dc36d 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile | |||
| @@ -130,10 +130,6 @@ else | |||
| 130 | 130 | ||
| 131 | KBUILD_CFLAGS += -mno-red-zone | 131 | KBUILD_CFLAGS += -mno-red-zone |
| 132 | KBUILD_CFLAGS += -mcmodel=kernel | 132 | KBUILD_CFLAGS += -mcmodel=kernel |
| 133 | |||
| 134 | # -funit-at-a-time shrinks the kernel .text considerably | ||
| 135 | # unfortunately it makes reading oopses harder. | ||
| 136 | KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) | ||
| 137 | endif | 133 | endif |
| 138 | 134 | ||
| 139 | ifdef CONFIG_X86_X32 | 135 | ifdef CONFIG_X86_X32 |
diff --git a/arch/x86/Makefile.um b/arch/x86/Makefile.um index 577976b7d1f8..1db7913795f5 100644 --- a/arch/x86/Makefile.um +++ b/arch/x86/Makefile.um | |||
| @@ -26,9 +26,6 @@ cflags-y += $(call cc-option,-mpreferred-stack-boundary=2) | |||
| 26 | # an unresolved reference. | 26 | # an unresolved reference. |
| 27 | cflags-y += -ffreestanding | 27 | cflags-y += -ffreestanding |
| 28 | 28 | ||
| 29 | # gcc 4.3.0 needs -funit-at-a-time for extern inline functions. | ||
| 30 | KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) | ||
| 31 | |||
| 32 | KBUILD_CFLAGS += $(cflags-y) | 29 | KBUILD_CFLAGS += $(cflags-y) |
| 33 | 30 | ||
| 34 | else | 31 | else |
| @@ -50,6 +47,4 @@ ELF_FORMAT := elf64-x86-64 | |||
| 50 | LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64 | 47 | LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64 |
| 51 | LINK-y += -m64 | 48 | LINK-y += -m64 |
| 52 | 49 | ||
| 53 | # Do unit-at-a-time unconditionally on x86_64, following the host | ||
| 54 | KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) | ||
| 55 | endif | 50 | endif |
