www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/30/22:31:48

From: elf AT netcom DOT com (Marc Singer)
Message-Id: <199605010218.TAA27057@netcom7.netcom.com>
Subject: Re: ELF wanted
To: martynas DOT kunigelis AT vm DOT ktu DOT lt (Martynas Kunigelis)
Date: Tue, 30 Apr 1996 19:17:48 -0700 (PDT)
In-Reply-To: <199604290709.DAA17704@delorie.com> from "Martynas Kunigelis" at Apr 29, 96 09:57:22 am
MIME-Version: 1.0
Sender: elf AT netcom DOT com

> 
>   Hi everyone,
> 
> I am looking for documentation on ELF-i386 file format. If you have any info,
> maybe the file <elf.h>, if one exists, or binutils (at least as and ld),
> configured for ELF and compiled with DJGPP, PLEASE contact me. Just one
> question for now: does ELF allow to create relocatable executables?

Yes, it does allow for the creation of relocatable executables.  In
fact, that was a primary consideration when Linux changed to use ELF
as the default executable format. 

I, too, was looking for such information.  I found the elf.ps file
that comes with GCC not very interesting because it is a programmer's
guide for using ELF modules, but not a format specification.  I've
seen several references to the Sun and SVR4 documentation, but I've
never been able to find the original books.  I'll bet the bibliography
in the elf.ps file will give a good reference.

I found most of my information in the binutils/include/elf directory
of the binutils distribution.  All I wanted to do was dump the file,
so I wrote a small program to parse the header, segments, and symbols.
I got a small amount of info from The Magic Garden Explained. 

> Now something weird: I have added a new function attribute to GCC: fastcall.
> ...
> Hope the'd agree.. Anyway, if someone cares, please contact me, I might mail
> you a small patch to the gcc-2.7.2 sources, or maybe upload the pre-compiled
> cc1 and cc1plus somewhere.

Good addition.  I wouldn't mind a patch.  Have you been successful at
getting a Pentium optimized compiler to work?  I used an older
version, but it generated code that crashed.

Marc Singer
elf AT netcom DOT com

- Raw text -


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