ld -shared -pie vs. unresolved symbols

Andreas Schwab schwab@suse.de
Tue Jul 3 14:12:00 GMT 2007


"H.J. Lu" <hjl@lucon.org> writes:

> On Tue, Jul 03, 2007 at 03:30:36PM +0200, Andreas Schwab wrote:
>> There is a problem with the ia64 linker that it crashes when seeing a
>> R_IA64_PCREL21B relocation against an unresolved symbol, because no PLT
>> has been allocated for it.  This can be fixed with the patch below, but
>> I'm not sure whether that combination should be allowed in the first
>> place.
>> 
>
> Is this the same as
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=4409
>
> Does the Linux binutils 2.17.50.0.17 crash?

It silently generates a shared library that crashes at runtime, so I'd
rather ban the combination of -shared with -pie regardless of how the
crash is resolved.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list