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

2009-09-01 Thread kpfleming at digium dot com
--- Comment #3 from kpfleming at digium dot com 2009-09-01 21:11 --- That talks about using -fpie/-fPIE as a workaround, but according to the gcc manpage those options are not suitable when the result is going to be used in a shared library, only as a linked executable. -- http

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

2009-09-01 Thread kpfleming at digium dot com
--- 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