www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/14/17:37:53

From: <SANDMANN AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: COFF and ELF exec formats
Date: Mon, 14 Oct 1996 11:37:44
Organization: Rice University, Houston, Texas
Lines: 14
Message-ID: <32622608.SANDMANN@clio.rice.edu>
References: <Pine DOT NEB DOT 3 DOT 95 DOT 961013204040 DOT 5686F-100000 AT ananke DOT amu DOT edu DOT pl>
Reply-To: SANDMANN AT clio DOT rice DOT edu
NNTP-Posting-Host: clio.rice.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> adding ELF support to DJGPP would be a matter of changing a) gas code to
> output ELF objects, b) LD code to link together ELF modules and/or convert
> COFF ones to ELF format during the linking process (is it a loseless
> operation?), c) writing a new image loader

src/debug/common/v2load.c needs to be updated, so that go32-v2 and the 
debuggers will work.  This should be the first module modified, since it's
easier to debug this code than it is to modify the stub.  This module should
handle either type of image; but there can be two separate stubs - one for
each type of binary image format.  So I would say the order is:
 1) Build ld such that it can create either COFF or ELF images.
 2) Enhance v2load.c to be able to load ELF images.
 3) Modify a new stub to load ELF images.
 4) Look at changing default .o format when everything else is working.

- Raw text -


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