[Bug target/20199] New: -fvisibility-inlines-hidden broken on powerpc64-linux

janis at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 24 22:45:00 GMT 2005


The C++ option -fvisibility-inlines-hidden doesn't work on powerpc64-linux.
I don't understand the problem well enough to describe it well or to
provide a small test case that doesn't depend on using libstdc++.  The
problem shows up with anything that uses <iostream>, and also with the
test g++.old-deja/g++.pt/ttp19.C which uses <vector>.
                                                                                
With current mainline and binutils 2.15, a program links successfully but
dies at runtime with an illegal instruction, apparently trying to execute
data.  With binutils from CVS the link fails; for ttp19.C the message is
                                                                                
elm3b11% $INST/bin/g++ -m64 -fvisibility-inlines-hidden ttp19.C
.../bin/ld: /tmp/ccR7UhuH.o(.text+0x48): unresolvable R_PPC64_REL24 relocation
against symbol `std::allocator<char>::allocator()@@GLIBCXX_3.4'
.../bin/ld: /tmp/ccR7UhuH.o(.text+0x60): unresolvable R_PPC64_REL24 relocation
against symbol `std::allocator<char>::~allocator()@@GLIBCXX_3.4'
.../bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
                                                                                
This might well be a binutils problem rather than a GCC problem, although
a fix to binutils will also require updated GCC documentation about which
version of binutils is required for powerpc64-linux.

-- 
           Summary: -fvisibility-inlines-hidden broken on powerpc64-linux
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20199



More information about the Gcc-bugs mailing list