From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10687 invoked by alias); 24 Feb 2005 18:52:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10376 invoked by uid 48); 24 Feb 2005 18:52:35 -0000 Date: Thu, 24 Feb 2005 22:45:00 -0000 From: "janis at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050224185234.20199.janis@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/20199] New: -fvisibility-inlines-hidden broken on powerpc64-linux X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg03026.txt.bz2 List-Id: 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 , and also with the test g++.old-deja/g++.pt/ttp19.C which uses . 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::allocator()@@GLIBCXX_3.4' .../bin/ld: /tmp/ccR7UhuH.o(.text+0x60): unresolvable R_PPC64_REL24 relocation against symbol `std::allocator::~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