delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/30/23:26:01

Date: Thu, 30 Oct 1997 20:24:10 -0800 (PST)
Message-Id: <199710310424.UAA26545@adit.ap.net>
Mime-Version: 1.0
To: Jose Luis Perandones Colino <joepc AT writeme DOT com>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: coff output question

At 12:08  10/31/1997 +0100, Jose Luis Perandones Colino wrote:
>How can i generate ONLY coff output invoking gcc (not ld)?
I'm not entirely sure I understand your question. I *think* what you want is
the un-stubified COFF image. I don't think there is a way to omit the
stubifying stage, without running ld directly, since I think stubifying is
hardcoded into the GCC specs file. But you can get both the unstubbed COFF
and the EXE with a command like this:
gcc -o myprog obj1.o obj2.o ...

This will leave the unstubbed COFF in the file `myprog', and the EXE in file
`myprog.exe'. You could then delete the `myprog.exe' if you really don't
want it.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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