delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/14/03:27:14

Date: Tue, 14 Jul 1998 10:27:09 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Sérgio Vale e Pace <space AT gold DOT com DOT br>
cc: djgpp AT delorie DOT com
Subject: Re: linker tutorial
In-Reply-To: <35AAE4D5.E08CD4B5@gold.com.br>
Message-ID: <Pine.SUN.3.91.980714102636.6831O-100000@is>
MIME-Version: 1.0

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 <coff.h>,
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.

- Raw text -


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