[Bug lto/87698] [lto] Shared library build with -ffat-lto-objects generates extra global absolute symbol relocations

romain.geissler at amadeus dot com gcc-bugzilla@gcc.gnu.org
Mon Oct 22 23:12:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87698

--- Comment #1 from Romain Geissler <romain.geissler at amadeus dot com> ---
Note: this is the source of the following error when linking with ld.lld 7.0:

ld.lld: error: corrupt input file: version definition index 0 for symbol
_libssh2_ntohu32 is out of bounds 
>>> defined in /projects/combld/delivery/continuous/components.osp/osp/SSH2/18-0-0-0/lib/x86_64-2.6.32-v4/Debug/libssh2.so

Don't know if this particular behavior is a ld.lld bug though, I actually don't
expect these symbols to be even defined in the final libssh2.so.


More information about the Gcc-bugs mailing list