From: 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: 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.