Re: [PATCH] [RFT] m68k: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION

2021-02-25 Thread Kees Cook
On Thu, Feb 25, 2021 at 12:14:45PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > While experimenting with CONFIG_TRIM_UNUSED_KSYMS across architectures, > I noticed that this unsurprisingly works best when combined with the > --gc-sections linker flag, which is not currently allowed on

Re: [PATCH] [RFT] m68k: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION

2021-02-25 Thread John Paul Adrian Glaubitz
Hi Arnd! On 2/25/21 12:14 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > While experimenting with CONFIG_TRIM_UNUSED_KSYMS across architectures, > I noticed that this unsurprisingly works best when combined with the > --gc-sections linker flag, which is not currently allowed on m68k. > >

[PATCH] [RFT] m68k: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann While experimenting with CONFIG_TRIM_UNUSED_KSYMS across architectures, I noticed that this unsurprisingly works best when combined with the --gc-sections linker flag, which is not currently allowed on m68k. Enabling it with this patch shows significant improvements for