delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/12/12/08:45:20

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: make a .exe an object file
Date: 12 Dec 2003 13:38:40 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 38
Message-ID: <brcgd0$ehu$1@nets3.rz.RWTH-Aachen.DE>
References: <3fd7af5f_6 AT corp DOT newsgroups DOT com> <br9r2l$qh9$4 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3fd8e7d0_1 AT corp DOT newsgroups DOT com>
NNTP-Posting-Host: ac3b07.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1071236320 14910 137.226.33.205 (12 Dec 2003 13:38:40 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 12 Dec 2003 13:38:40 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Bill Cunningham <nospam AT nspam DOT net> wrote:

> Just what is in an executable? 

Depends on the executable, obviously.

> I know there's a resource compiler for Windows and I think it's
> ouput goes into the executable. 

Yes. Into a special section of it.

> I really don't care what BFD the executable has. 

But Windows does.

> But COFF seems to be what djgpp uses. Can any symbol tables be
> trimmed off an executable, or added to make it COFF compatable for
> the exec2coff command?

The difference of COFF vs. PE is quite a bit more significant than
just presence or absence of symbol tables.

In principle, you could use "objcopy" from binutils to take a Win32/PE
executable and convert it to raw COFF, provided both targets were
enabled when building that instance of the binutils.  I don't think
the default distributions are.

You shouldn't expect to be able to do anything useful with the result
of such a conversion, though.

Maybe you go back to square and begin by explaining what it is you're
trying to achieve here, in the first place?  And why you think DJGPP's
exe2coff or its successor unstubify has anything to do with it?  So
far, you've spoken in riddles.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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