From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id DF1343EA2A for ; Thu, 14 Nov 2002 08:16:37 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gAEDGbu23028 for axp-list@listman.redhat.com; Thu, 14 Nov 2002 08:16:37 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gAEDGbD23024 for ; Thu, 14 Nov 2002 08:16:37 -0500 Received: from skarpsey.dyndns.org (12-237-135-160.client.attbi.com [12.237.135.160]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gAECrHw25772 for ; Thu, 14 Nov 2002 07:53:17 -0500 Received: from valhalla (Valhalla.attbi.com [192.168.0.2]) by skarpsey.dyndns.org (8.12.6/8.12.5) with ESMTP id gAEDBclm026507 for ; Thu, 14 Nov 2002 07:11:40 -0600 Content-Type: text/plain; charset="iso-8859-1" From: Kelledin To: axp-list@redhat.com Subject: Re: Shared objects+global variables? Date: Thu, 14 Nov 2002 08:11:38 -0500 User-Agent: KMail/1.4.3 References: <200211132121.28796.kelledin+AXP@skarpsey.dyndns.org> <20021113225527.E19573@twiddle.net> <200211140656.56074.kelledin+AXP@skarpsey.dyndns.org> In-Reply-To: <200211140656.56074.kelledin+AXP@skarpsey.dyndns.org> MIME-Version: 1.0 Message-Id: <200211140711.38600.kelledin+AXP@skarpsey.dyndns.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by int-mx1.corp.redhat.com id gAEDGbD23024 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Thursday 14 November 2002 06:56 am, Kelledin wrote: > On Thursday 14 November 2002 12:55 am, Richard Henderson wrote: > > On Wed, Nov 13, 2002 at 10:21:28PM -0500, Kelledin wrote: > > > ... whenever I try to compile a library that does this, > > > ld complains about "gp-relative relocations" and refuses > > > to link. > > > > You MUST use -fpic or -fPIC. > > I did that, no luck; it was one of the first things I tried. > Also tried -mno-explicit-relocs. =( Now I'm starting to think > binutils is responsible... Ummm. Well... It works now. I'm not exactly sure why, but recompiling gcc seemed to fix the problem. I wish I knew how that happened... -- Kelledin "If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"