public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40546] -fwhole-program -shared with externally_visible gives R_X86_64_PC32 errors
[not found] <bug-40546-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-09 5:28 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-09 5:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40546
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Keywords| |wrong-code
Target Milestone|--- |4.6.0
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There was many fixes for IPA and binds local for 4.6.
This was fixed by one of those.
Most likely it was r0-103118.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/40546] -fwhole-program -shared with externally_visible gives R_X86_64_PC32 errors
2009-06-24 15:45 [Bug c/40546] New: " gcc at natvig dot com
2009-09-01 20:53 ` [Bug target/40546] " kpfleming at digium dot com
2009-09-01 20:58 ` kargl at gcc dot gnu dot org
@ 2009-09-01 21:12 ` kpfleming at digium dot com
2 siblings, 0 replies; 4+ messages in thread
From: kpfleming at digium dot com @ 2009-09-01 21:12 UTC (permalink / raw)
To: gcc-bugs
------- 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://gcc.gnu.org/bugzilla/show_bug.cgi?id=40546
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/40546] -fwhole-program -shared with externally_visible gives R_X86_64_PC32 errors
2009-06-24 15:45 [Bug c/40546] New: " gcc at natvig dot com
2009-09-01 20:53 ` [Bug target/40546] " kpfleming at digium dot com
@ 2009-09-01 20:58 ` kargl at gcc dot gnu dot org
2009-09-01 21:12 ` kpfleming at digium dot com
2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-09-01 20:58 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/40546] -fwhole-program -shared with externally_visible gives R_X86_64_PC32 errors
2009-06-24 15:45 [Bug c/40546] New: " gcc at natvig dot com
@ 2009-09-01 20:53 ` kpfleming at digium dot com
2009-09-01 20:58 ` kargl at gcc dot gnu dot org
2009-09-01 21:12 ` kpfleming at digium dot com
2 siblings, 0 replies; 4+ messages in thread
From: kpfleming at digium dot com @ 2009-09-01 20:53 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-09 5:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-40546-4@http.gcc.gnu.org/bugzilla/>
2021-08-09 5:28 ` [Bug target/40546] -fwhole-program -shared with externally_visible gives R_X86_64_PC32 errors pinskia at gcc dot gnu.org
2009-06-24 15:45 [Bug c/40546] New: " gcc at natvig dot com
2009-09-01 20:53 ` [Bug target/40546] " kpfleming at digium dot com
2009-09-01 20:58 ` kargl at gcc dot gnu dot org
2009-09-01 21:12 ` kpfleming at digium dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).