[llvm-dev] wrap with symver and LTO

Gilles Vollant via llvm-dev
2021-07-25T07:15:47Z

On 2021-07-24, Fangrui Song via llvm-dev wrote:

> In gold, --wrap=log seems to apply to a non-default version symbol
log at GLIBC_2.2.5 .
> I consider it a bug.


> Note: ld.lld's --wrap has another difference with GNU linkers
> https://sourceware.org/bugzilla/show_bug.cgi?id=26358
> I personally think ld.lld's is superior because LTO, non-LTO and
relocatable links behave the same.

Do you known a difference in executable size and executable performance
between -fuse-ld=lld ; -fuse-ld=bfd and -fuse-ld=gold for linking clang C++
with lto objet and static library) ?