On 6/22/2021 12:49 AM, Richard Biener wrote:
This adds a -ltrans-objects option to lto-plugin that by-passes
lto-wrapper invocation and instead feeds LD the final LTRANS objects
directly from the response file given as argument to the option.
This allows LD issues involving the linker-plugin path to be
debugged in an easier way with just the IR objects (their symtab)
and the LTRANS objects as testcase.

I've tested the path re-building stage2 build/genmatch from an
LTO bootstrap and got a bit-identical executable by adding
-plugin-opt=-ltrans-objects=y to the original collect2 invocation,
seeding y with the final objects as printed by building genmatch
with -save-temps -v.

Bootstrapped and tested on x86_64-unknown-linux-gnu.

OK?

2021-06-22  Richard Biener  <rguent...@suse.de>

lto-plugin/
        * lto-plugin.c (ltrans_objects): New global.
        (all_symbols_read_handler): If -ltrans-objects was specified,
        add the output files from the specified file directly.
        (process_option): Handle -ltrans-objects.

OK
jeff

Reply via email to