Date: Tue, 14 Jul 1998 10:27:09 +0300 (IDT) From: Eli Zaretskii To: Sérgio Vale e Pace cc: djgpp AT delorie DOT com Subject: Re: linker tutorial In-Reply-To: <35AAE4D5.E08CD4B5@gold.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit Precedence: bulk On Tue, 14 Jul 1998, Sérgio Vale e Pace wrote: > The final objective is to make ld link the output of DJGPP in a Win32 EXE, to > acomplish this I need to understand what inoformation I have avaliable and > how to get it, I mean I have no clue abou the structure of the COFF files > (I still not sure if this is the right type of object file), and even gets > worst, I don't know exactly what expect from this BFD (this is the library > that read the object files?) The linker docs include an introduction to the BFD library (yes, BFD *is* the library used to read object and excutable files). Further info about the BFD internals is available in the Binutils distribution, in the bfd/doc directory, as an Info file bfd.info (I'm not sure it is part of the DJGPP bnu281b.zip distribution). DJGPP COFF files structure is outlined in the system header , which see. The DJGPP Web server (www.delorie.com/djgpp/) has more info about this. If that is still not enough, you will have to ask specific questions, both here and on the appropriate GNU news group. I'm not aware of any tutorials about the related issues, but maybe someone else is. You *must* realize that the mission you are about to embark on is a *hard* one. Don't expect any ready solutions just a net hop away. You need to be prepared to read a lot of code and make sense out of it. One place to look for an example of a solution is in the Cygwin32 project: they already have a GNU ld emitting native Win32 executables. This means that the latest GNU Binutils distribution supports the Cygwin32 configuration, so I'd suggest looking at that first.