From: William Cohen Date: Fri, 22 Jan 2016 03:56:26 +0000 (-0500) Subject: Eliminate the .eh_frame sections from the aarch64 vmlinux and kernel modules X-Git-Tag: firefly_0821_release~176^2~4^2~47^2~77 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d2779548f7c7156686d4d88ce4ae904460952a8c;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Will Deacon (cherry picked from commit 728dabd6d1751cf5e0f8e0535891393da62396e9) Signed-off-by: Alex Shi Conflicts: pick 67dfa1751 arm64: errata: Add -mpc-relative-literal-loads in arch/arm64/Makefile --- diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index b6c90e5006e4..548a2939d7e6 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -28,6 +28,7 @@ endif KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) KBUILD_CFLAGS += $(call cc-option, -mpc-relative-literal-loads) +KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_AFLAGS += $(lseinstr) ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)