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

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 1 20:58:00 GMT 2009



------- Comment #2 from kargl at gcc dot gnu dot org  2009-09-01 20:58 -------
(In reply to comment #1)
> 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.
> 

See http://gcc.gnu.org/ml/fortran/2009-08/msg00466.html


-- 


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



More information about the Gcc-bugs mailing list