John Levine writes:
>>>occupy fixed place in memory, whereas in case of ELF,
>>>the shared libraries can be loaded anywhere in memory.
>>
>>This is not true. Typical implementations of shared libraries with
>>a.out did not use fixed addresses.
>They did it both ways. BSDI had fixed address static libraries, SunOS
>as I recall had relocatable.
Not "relocatable" but rather "position independent".
"Relocatable" requires fixups in the code after loading;
"position independent" did not. The SunOS loader was able to
relocatable libraries also, but they can't be shared.
a.out only has a few sections; ELF has an unlimited number.
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth. |
|
|