From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.back-rdu.redhat.com (8.11.6/8.11.6) with ESMTP id h7H0afN05745 for ; Sat, 16 Aug 2003 20:36:41 -0400 Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h7H0cM729223 for axp-list@listman.back-rdu.redhat.com; Sat, 16 Aug 2003 20:38:22 -0400 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 h7H0cMs29218 for ; Sat, 16 Aug 2003 20:38:22 -0400 Received: from skarpsey.home.lan (12-207-41-15.client.attbi.com [12.207.41.15]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h7H0cMt11602 for ; Sat, 16 Aug 2003 20:38:22 -0400 Received: from valhalla.home.lan (valhalla.home.lan [192.168.0.2]) by skarpsey.home.lan (8.12.9/8.12.9) with ESMTP id h7H0dC8l025643 for ; Sat, 16 Aug 2003 19:39:12 -0500 From: Kelledin To: axp-list@redhat.com Subject: Re: gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory Date: Sat, 16 Aug 2003 19:40:58 -0500 User-Agent: KMail/1.5.2 References: <3F3DE4CA.80304@gatworks.com> <200308161215.52948.kelledin+AXP@skarpsey.dyndns.org> <3F3E95EB.6000904@gatworks.com> In-Reply-To: <3F3E95EB.6000904@gatworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308161940.58653.kelledin+AXP@skarpsey.dyndns.org> 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.13 Precedence: junk 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 Saturday 16 August 2003 03:36 pm, Uncle George wrote: > I'm reasonably sure that you might need PIC code to create a > dynamic library, from static & > other dynamic libraries, I'm not so sure thats true if you > want an executable, derived from static & dynamic libraries. Let me assure you, you need PIC code in either case. ;) -fpic or -fPIC instructs GCC to modify the code's register usage at an assembly-language level before the assembly code gets passed to gas. So it needs to be done before the object file is generated, and every object file that gets linked into a dynamic library needs to have it done (at least on Alpha). My rule of thumb is, whenever you build a static library with no corresponding dynamic library, the static library should be built with -fPIC. Otherwise you're liable to have this very problem further down the road and end up having to retrace your steps. -- Kelledin "If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"