Re: [PATCH v4 mips-next 3/7] MIPS: properly stop .eh_frame generation

2021-01-08 Thread Nathan Chancellor
On Thu, Jan 07, 2021 at 12:35:01PM +, Alexander Lobakin wrote: > Commit 866b6a89c6d1 ("MIPS: Add DWARF unwinding to assembly") added > -fno-asynchronous-unwind-tables to KBUILD_CFLAGS to prevent compiler > from emitting .eh_frame symbols. > However, as MIPS heavily uses CFI, that's not enough.

Re: [PATCH v4 mips-next 3/7] MIPS: properly stop .eh_frame generation

2021-01-07 Thread Kees Cook
On Thu, Jan 07, 2021 at 12:35:01PM +, Alexander Lobakin wrote: > Commit 866b6a89c6d1 ("MIPS: Add DWARF unwinding to assembly") added > -fno-asynchronous-unwind-tables to KBUILD_CFLAGS to prevent compiler > from emitting .eh_frame symbols. > However, as MIPS heavily uses CFI, that's not enough.

[PATCH v4 mips-next 3/7] MIPS: properly stop .eh_frame generation

2021-01-07 Thread Alexander Lobakin
Commit 866b6a89c6d1 ("MIPS: Add DWARF unwinding to assembly") added -fno-asynchronous-unwind-tables to KBUILD_CFLAGS to prevent compiler from emitting .eh_frame symbols. However, as MIPS heavily uses CFI, that's not enough. Use the approach taken for x86 (as it also uses CFI) and explicitly put CFI