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 79625403E1 for ; Thu, 14 Nov 2002 01:55:30 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gAE6tUZ15538 for axp-list@listman.redhat.com; Thu, 14 Nov 2002 01:55:30 -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 gAE6tUD15534 for ; Thu, 14 Nov 2002 01:55:30 -0500 Received: from are.twiddle.net (are.twiddle.net [64.81.246.98]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gAE6WDw28007 for ; Thu, 14 Nov 2002 01:32:13 -0500 Received: (from rth@localhost) by are.twiddle.net (8.11.6/8.11.6) id gAE6tRS19620 for axp-list@redhat.com; Wed, 13 Nov 2002 22:55:27 -0800 Date: Wed, 13 Nov 2002 22:55:27 -0800 From: Richard Henderson To: axp-list@redhat.com Subject: Re: Shared objects+global variables? Message-ID: <20021113225527.E19573@twiddle.net> Mail-Followup-To: axp-list@redhat.com References: <200211132121.28796.kelledin+AXP@skarpsey.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200211132121.28796.kelledin+AXP@skarpsey.dyndns.org>; from kelledin+AXP@skarpsey.dyndns.org on Wed, Nov 13, 2002 at 10:21:28PM -0500 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 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. > Is this normal on alpha platforms? Yes. And IA-64, and Sparc, and PPC, and ... > It's most certainly not normal on x86... They got lucky. r~