Mail Archives: djgpp/1997/10/30/23:26:01
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 -