From: Kelledin <kelledin+AXP@skarpsey.dyndns.org>
To: axp-list@redhat.com
Subject: Re: gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory
Date: Sat, 16 Aug 2003 19:40:58 -0500 [thread overview]
Message-ID: <200308161940.58653.kelledin+AXP@skarpsey.dyndns.org> (raw)
In-Reply-To: <3F3E95EB.6000904@gatworks.com>
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?"
prev parent reply other threads:[~2003-08-17 0:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-16 8:01 gp-relative relocation against dynamic symbol SwGlobalDocShell::pObjectFactory Uncle George
2003-08-16 17:15 ` Kelledin
2003-08-16 20:36 ` Uncle George
2003-08-17 0:40 ` Kelledin [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox