[Bug target/40546] -fwhole-program -shared with externally_visible gives R_X86_64_PC32 errors

kpfleming at digium dot com gcc-bugzilla@gcc.gnu.org
Tue Sep 1 20:53:00 GMT 2009



------- Comment #1 from kpfleming at digium dot com  2009-09-01 20:53 -------
I have just run into this as well; supplying -fPIC (implied in -shared) without
-fwhole-program works fine, but adding -fwhole-program causes functions that
are called internally to the program being compiled to end up with the wrong
relocation type. Making that function static and providing an
externally_visible wrapper for it is a workaround.


-- 

kpfleming at digium dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kpfleming at digium dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40546



More information about the Gcc-bugs mailing list