Mail Archives: djgpp/1996/05/18/14:48:46
> I think ELF places more restrictions on code style than COFF (if
> COFF does at all). The code is usually position independent
> (probably only for libraries) but you have to keep one register
> unused that is used for making calls position independent. So
> converting from COFF to ELF is probably not possible. (Well, that's
> what I gathered from some announcements with Linux moved to ELF,
> maybe I'm incorrect)
That is very true. ELF requires PIC (Position Independent Code) which
is achieved by adding a runtime offset for all module relative
references. This offset is stored in a register. We would have to
have ELF versions of all shared libraries.
- Raw text -