delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/18/14:48:46

From: elf AT netcom DOT com (Marc Singer)
Message-Id: <199605181836.LAA03190@netcom9.netcom.com>
Subject: Re: ELF wanted
To: lehmann AT mathematik DOT th-darmstadt DOT de (Alexander Lehmann)
Date: Sat, 18 May 1996 11:27:57 -0700 (PDT)
In-Reply-To: <4nb67f$1e3o@rs18.hrz.th-darmstadt.de> from "Alexander Lehmann" at May 14, 96 11:50:07 pm
MIME-Version: 1.0
Sender: elf AT netcom DOT com

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019