diff options
author | William Cohen <wcohen@redhat.com> | 2016-01-21 22:56:26 -0500 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-01-26 06:14:13 -0500 |
commit | 728dabd6d1751cf5e0f8e0535891393da62396e9 (patch) | |
tree | d47976f44645369f0d2d93ddf0b9349a5c7b1a12 | |
parent | b3122023df935cf14bf951da98ca598d71b9f826 (diff) |
Eliminate the .eh_frame sections from the aarch64 vmlinux and kernel modules
By default the aarch64 gcc generates .eh_frame sections. Unlike
.debug_frame sections, the .eh_frame sections are loaded into memory
when the associated code is loaded. On an example kernel being built
with this default the .eh_frame section in vmlinux used an extra 1.7MB
of memory. The x86 disables the creation of the .eh_frame section.
The aarch64 should probably do the same to save some memory.
Signed-off-by: William Cohen <wcohen@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | arch/arm64/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index cd822d8454c0..094a137f6083 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile | |||
@@ -27,6 +27,7 @@ $(warning LSE atomics not supported by binutils) | |||
27 | endif | 27 | endif |
28 | 28 | ||
29 | KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) | 29 | KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) |
30 | KBUILD_CFLAGS += -fno-asynchronous-unwind-tables | ||
30 | KBUILD_AFLAGS += $(lseinstr) | 31 | KBUILD_AFLAGS += $(lseinstr) |
31 | 32 | ||
32 | ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) | 33 | ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) |