global-file-syms for clang
grant@hcubed.com
grant@hcubed.com
Thu Mar 21 15:32:08 GMT 2024
Nick,
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.
Disabling one of the above constraints (annobin plugin, LTO) causes the
build to complete.
I was just going to use the global-file-syms to overcome the LLVM gold
plugin/LTO issue.
Regards,
Grant Haidinyak
On 2024-03-21 01:35, Nick Clifton wrote:
> Hi Grant,
>
>> I need to get the global-file-syms option operation on the clang
>> plugin. Is this already done?
>
> No. :-(
>
>> The reason for the ask is the project I'm working on has the same
>> filename used and the linker is complaining about redefinition of the
>> _annobin_{filename}_start.
>
> Ah yes....
>
> You could use gcc as a workaround. (Just being cheeky).
>
> I will ask one of my colleagues to have a look at the issue, since
> he has been making other enhancements to the clang plugin recently.
>
> Cheers
> Nick
More information about the Annobin
mailing list