Re: [RFC PATCH] x86: enable dead code and data elimination (LTO)
From: Ingo Molnar
Date: Sun Jul 09 2017 - 05:06:10 EST
* Nicholas Piggin <npiggin@xxxxxxxxx> wrote:
> FYI, easiest way to check if you forgot to KEEP a linker table is
> to look at `readelf -S vmlinux` differences, and to see what is
> being trimmed, look at nm differences or use --print-gc-sections
> LD option to see what symbols you're trimming. Linker tables,
> boot entry, and exception entry tends to require anchoring.
Could you please add a debug build target to display all discarded
symbols/sections? Something like:
make lto-check
... or so?
Thanks,
Ingo