From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20314 invoked by alias); 11 May 2007 21:34:43 -0000 Received: (qmail 20306 invoked by uid 22791); 11 May 2007 21:34:43 -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 21:34:37 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hmckt-0003fZ-E1 for gcc-help@gcc.gnu.org; Fri, 11 May 2007 23:34:27 +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 23:34:27 +0200 Received: from ghughesf by 65.207.248.83 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2007 23:34:27 +0200 To: gcc-help@gcc.gnu.org From: Gary Hughes-Fenchel Subject: Re: hidden symbol __dso_handle reference: link error Date: Fri, 11 May 2007 21:34:00 -0000 Message-ID: References: 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) In-Reply-To: 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/msg00112.txt.bz2 Matthew Woehlke wrote: > Gary Hughes-Fenchel wrote: >> 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 > > Are you using '-shared' when you invoke gcc/g++ to compile your source > objects? > No I was not. I tried it, and that cleared it up! Thanks!