www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/18/02:56:58

Date: Thu, 18 Jun 1998 09:56:34 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Michael Gaugy <mgaugy AT ddi DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Loader and crt0 code modifications...
In-Reply-To: <000201bd9a4d$b94afaa0$6d18a9ce@mahler.ddi.com>
Message-ID: <Pine.SUN.3.91.980618095612.23552K-100000@is>
MIME-Version: 1.0

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 -


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