------- 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

Reply via email to