Thread (4 messages) flat view 4 messages, 3 authors, 2020-04-01

Re: [PATCH 2/2] powerpc: Suppress .eh_frame generation

From: Segher Boessenkool <hidden>
Date: 2020-03-05 16:41:56

On Thu, Mar 05, 2020 at 08:05:30PM +0530, Naveen N. Rao wrote:
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.
That may change, but it is easy to change again for just the VDSOs.
Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Naveen N. Rao <redacted>
Reviewed-by: Segher Boessenkool <redacted>

Thanks!


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help