Skip to content

Commit ba96301

Browse files
rnavmpe
authored andcommitted
powerpc: Suppress .eh_frame generation
GCC v8 defaults to enabling -fasynchronous-unwind-tables due to https://gcc.gnu.org/r259298, which results in .eh_frame section being generated. This results in additional disk usage by the build, as well as the kernel modules. Since the kernel has no use for this, this section is discarded. Add -fno-asynchronous-unwind-tables to KBUILD_CFLAGS to suppress generation of .eh_frame section. Note that our VDSOs need .eh_frame, but are not affected by this change since our VDSO code are all in assembly. Reported-by: Rasmus Villemoes <[email protected]> Signed-off-by: Naveen N. Rao <[email protected]> Reviewed-by: Segher Boessenkool <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/1ed7cd84a7d1a3180b30c0c60e70eed8bb8b40c3.1583415544.git.naveen.n.rao@linux.vnet.ibm.com
1 parent c04868d commit ba96301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/powerpc/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ KBUILD_CFLAGS += $(call cc-option,-mno-vsx)
239239
KBUILD_CFLAGS += $(call cc-option,-mno-spe)
240240
KBUILD_CFLAGS += $(call cc-option,-mspe=no)
241241

242+
# Don't emit .eh_frame since we have no use for it
243+
KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
244+
242245
# Never use string load/store instructions as they are
243246
# often slow when they are implemented at all
244247
KBUILD_CFLAGS += $(call cc-option,-mno-string)

0 commit comments

Comments
 (0)