This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld -shared -pie vs. unresolved symbols


"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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]