Date: Thu, 18 Jun 1998 09:56:34 +0300 (IDT) From: Eli Zaretskii To: Michael Gaugy cc: djgpp AT delorie DOT com Subject: Re: Loader and crt0 code modifications... In-Reply-To: <000201bd9a4d$b94afaa0$6d18a9ce@mahler.ddi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.