From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: Shared objects+global variables?
Date: Wed, 13 Nov 2002 22:55:27 -0800 [thread overview]
Message-ID: <20021113225527.E19573@twiddle.net> (raw)
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
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~
next prev parent reply other threads:[~2002-11-14 6:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-14 3:21 Shared objects+global variables? Kelledin
2002-11-14 6:55 ` Richard Henderson [this message]
2002-11-14 12:56 ` Kelledin
2002-11-14 13:11 ` Kelledin
2002-11-14 21:37 ` Ted Goodridge
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