Mail Archives: djgpp/1998/06/18/02:56:58
On Wed, 17 Jun 1998, Michael Gaugy wrote:
> Question: How do I configure GCC/DJGPP to change/remove the startup code
> and loader code that executes before the actual program entry point
> (main())? I fanyone knows, please let me know. Thx in advance.
There's no such option. You need to write your own startup code
and/or the stub loader and replace the distributed ones.
To replace the startup code, you will need to replace lib/crt0.o, and
the modules crt1.o, c1args.o, c1loadef.o, and c1pglob.o in
lib/libc.a. The stub loader is hard-wired into stubify.exe, ld.exe,
and some info about the stub is in stubedit.exe. Depending on your
needs, you will have to rebuild some or all of these with the new
stub.
- Raw text -