global-file-syms for clang

Tulio Magno Quites Machado Filho tuliom@ascii.art.br
Thu Mar 21 20:47:49 GMT 2024


grant@hcubed.com writes:

> 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.

Thank you! This information was important to reproduce the issue here.

It also happens when using lld.

-- 
Tulio Magno


More information about the Annobin mailing list