[Bug target/71776] relocation truncated to fit: R_ARM_THM_JUMP11 against symbol `__gnu_h2f_internal'
malithyapa at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 12 05:57:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71776
malithyapa at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from malithyapa at gmail dot com ---
The problem was in fact with linking both libm and libgcc with --whole-archive
and --allow-multiple-definitions options.
Which makes the linker link to a duplicate function in the other library than
the one its linking from since it'll link to the first one it finds.
In thumb mode the offset to the other library would be two large for the
instruction.
Even though it'll be nice if gcc links to the closest symbol rather than the
first one, this is documented behavior and it's not a bug.
More information about the Gcc-bugs
mailing list