This is the mail archive of the binutils@sources.redhat.com 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: Statically linking against a shared library


Thorsten Glaser <tg@66h.42h.de> writes:

> Alan Modra dixit:
>
>>At least not without emulating ld.so's behaviour in ld, which isn't
>>a sane idea.
>
> Uh, why? After all, I think, it's just some relocation work and
> setting up a bunch of tables.

No, it isn't.  The execution view of an ELF object is very much different
from the link view.  The information on how to set up this bunch of tables
is irretrievably gone.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
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]