RFC: How should the LTO plugin handle object files containing both LTO and non-LTO data ?
Nick Clifton
nickc@redhat.com
Tue Oct 13 10:44:50 GMT 2020
Hi Guys,
> Next I think that the best solution would be if the lto plugin were to
> examine the .symtab section of any file it is processing,
Except that the plugin does not know how to process ELF format symbol
tables, and adding such code would be silly given that this is already
supported by the BFD library.
So maybe tools like nm and ld should process lto object files twice.
First as an lto object file and then secondly as an ordinary object
file. Except that the second time around only new symbols/code/data
are extracted. Hmm, which might be hard to do. I guess I need to
think on this some more.
Cheers
Nick
More information about the Binutils
mailing list