From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20917 invoked by alias); 11 May 2007 20:30:17 -0000 Received: (qmail 20905 invoked by uid 22791); 11 May 2007 20:30:14 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 May 2007 20:30:08 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HmbkY-0002vS-KP for gcc-help@gcc.gnu.org; Fri, 11 May 2007 22:30:02 +0200 Received: from 65.207.248.83 ([65.207.248.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2007 22:30:02 +0200 Received: from ghughesf by 65.207.248.83 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2007 22:30:02 +0200 To: gcc-help@gcc.gnu.org From: Gary Hughes-Fenchel Subject: hidden symbol __dso_handle reference: link error Date: Fri, 11 May 2007 20:30:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg00110.txt.bz2 I am seeing this: /usr/bin/ld: pgmreceiver: hidden symbol `__dso_handle' in /usr/lib/gcc/x86_6 4-redhat-linux/4.1.1/crtbegin.o is referenced by DSO 26 /usr/bin/ld: final link failed: Nonrepresentable section on output 27 collect2: ld returned 1 exit status I am calling ld directly. I am building 2 separate libraries and trying to link with the dynamic libraries. The libraries are being created with: -fvisibility=default -shared -soname foo.so -lc mylib1.a mylib2.a I don't have the option of either rebuilding the compiler (suggested in one post at http://gcc.gnu.org/ml/libstdc++/2000-06/msg00134.html) or ceasing to call ld directly. The version I'm using is: g++ --version g++ (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52) The linker I'm using is: ld --version GNU ld version 2.17.50.0.6-2.el5 20061020 Any assistance would be greatly appreciated.