This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17828] -O2 -fPIC doesn't work with switches in linkonce functions and new binutils
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2004 09:44:37 -0000
- Subject: [Bug target/17828] -O2 -fPIC doesn't work with switches in linkonce functions and new binutils
- References: <20041004092544.17828.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jakub at gcc dot gnu dot org 2004-10-04 09:44 -------
GCC 3.3.x has the same problem.
Not sure if we want to backport COMDAT patches to GCC 3.3 and 3.4.
Other possible alternative would be to:
a) change ppc32 linker script, so that .got2 section includes both .got2
and .gnu.linkonce.got2.* sections
b) change rs6000 backend, so that it uses per-function .got2 sections
for linkonce functions
Or change ld to not error on this problem for another 3 years until all compilers
use COMDAT.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at bigpond dot net
| |dot au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17828