global-file-syms for clang
Nick Clifton
nickc@redhat.com
Mon Mar 25 17:19:19 GMT 2024
Hi Grant,
> Thanks. As a data point, when I use the GCC toolchain, I didn't need to set the global-file-syms flag. I believe the issue is an interaction between the LLVM gold plugin
> and the annobin plugin and linking in LTO archives that have objects that have the same filename for the source. The LLVM gold plugin tries to bring in all the fine annobin
> symbols, rather than just bringing the annobin symbols from the first file that satisfies the symbols for linking.
Hmm, strange. It sounds like an issue with the LLVM plugin, but I doubt
if it is likely to be fixed...
> I was just going to use the global-file-syms to overcome the LLVM gold plugin/LTO issue.
Fair enough. Please try the 12.46 sources, available from the annobin repository.
This has Tulio's patch to implement the global-file-syms option for the Clang and
LLVM plugins. (For the LLVM plugin you have to pass the options in the ANNOBIN
environment variable, since LLVM does not support passing options to plugins).
Cheers
Nick
More information about the Annobin
mailing list