delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/20/02:16:57

Date: Wed, 20 Jan 1999 09:14:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Paul Sneddon <sneddon AT clara DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Operating System Programming
In-Reply-To: <yJ5p2.804$N5.5809@nnrp2.clara.net>
Message-ID: <Pine.SUN.3.91.990120091342.2569I-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 19 Jan 1999, Paul Sneddon wrote:

> My problem is that I want to complie my code without any of the unneeded
> library code which djgpp includes in the output file.  If I use
> the -nostdlib option with the compiler ld compains that it can't find the
> program entry point.

The entry point is in crt0.S, and -nostdlib prevents the linker from
linking in crt0.o, which is why it complains.

You can create your own startup code, put the entry point there, and
instruct the linker to link it in.

- Raw text -


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