Mail Archives: djgpp/1999/09/21/17:02:05
On Thu, 16 Sep 1999, Davin McCall wrote:
> Suppose you compile and link a program - which process is responsible
> for creating the excecutable file that you use to run (that *is*) your
> program? I though it was LD.
No, it's usually STUBIFY. LD generates a raw COFF image that DOS
cannot run. STUBIFY then prepends a stub to it and writes both to a
.exe file.
At least this is how things work with the stock djgpp.djl linker
script that is supplied with djdevNNN.zip. If you edited or replaced
that script, your setup might be different. LD *does* know how to
create .exe files directly, we just don't use that feature by default
(for some subtle but important reasons).
- Raw text -