On 2/22/23 01:18, Florian Weimer via Gcc wrote:
Can we use the COMMON symbol __gnu_lto_slim to detect
-fno-fat-lto-objects on contemporary GNU/Linux (with the LTO linker
plugin)?

We currently build the distribution with -ffat-lto-objects, and I want
to switch away from that.  Packages will need to opt in to
-ffat-lto-objects if static objects they build escape the buildroot.
And to make sure that this opt-in happens, I want to fail the build if
there would be any -fno-fat-lto-objects objects leaking.
Thanks for taking care of this. It's one of the things I wish I'd had time to fix before leaving Red Hat. We burn a fair amount of builder time due to this issue right now.

jeff

Reply via email to