c++,ubuntu,linker,ld,gold-linker
Naturally, different linkers will produce different results, just like different compilers do. The result mostly depends on the optimization options that are enabled (and available) on each linker. Here is one possible reason for the differences you see, but there can be numerous others: -fipa-icf Perform Identical Code Folding for...
c,linker,ld,gentoo,gold-linker
The solution that comes to my mind -- is to use environment per-package modification via package.env. In problem package libtool is used, which invokes gcc as linker, so the thing is needed to add is -Wl,-fuse-ld=bfd (on link-stage, LDFLAGS). So, full solution is: mkdir -p /etc/portage/env echo 'LDFLAGS="${LDFLAGS} -Wl,-fuse-ld=bfd"' >>...