[Bug target/17828] -O2 -fPIC doesn't work with switches in linkonce functions and new binutils

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 4 09:44:00 GMT 2004


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



More information about the Gcc-bugs mailing list