From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12291 invoked by alias); 30 Apr 2005 20:46:35 -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 12266 invoked by uid 48); 30 Apr 2005 20:46:32 -0000 Date: Sat, 30 Apr 2005 20:46:00 -0000 Message-ID: <20050430204632.12264.qmail@sourceware.org> From: "ebotcazou at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050429073316.21277.info@yourkit.com> References: <20050429073316.21277.info@yourkit.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/21277] Runtime error with C++ shared library and --disable-shared X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg04307.txt.bz2 List-Id: ------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-04-30 20:46 ------- Andrew is right, this error usually means that a shared library contains code that has not been compiled with -fPIC. The Solaris 64-bit runtime linker doesn't seem to be able to cope with this (unlike the 32-bit one). Does it change anything if you build libq.so with -mimpure-text? -- What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu dot | |org Severity|critical |normal Component|c++ |target GCC build triplet| |sparc64-sun-solaris2.* GCC host triplet| |sparc64-sun-solaris2.* GCC target triplet| |sparc64-sun-solaris2.* Priority|P3 |P2 Summary|gcc 4.0 fails to statically |Runtime error with C++ |link on Solaris SPARC 64 bit|shared library and -- | |disable-shared http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21277