Subject: Re: -nostdlib and NetBSD ELF note
To: David Brownlee <>
From: Todd Vierling <>
List: tech-toolchain
Date: 09/16/2002 20:36:25
On Mon, 16 Sep 2002, David Brownlee wrote:

: 	It just sits there executing MMX or similar instructions to try to
: 	show up memory or CPU issues.
: > crt0 really only works best in conjunction with libc (and crt0 is also
: > excluded with -nostdlib), so if you are using -nostdlib on a program, you
: > need to know Exactly what you're doing.  My guess is that the use of
: > -nostdlib is incorrect.
: 	It seems plausible in this case?

No, it's implausible.  The program should be fixed.

If the idea is to endless-loop MMX instructions, it's perfectly fine to have
crt0 do its usual program-setup goop.  The overhead of crt0 startup0 vs.
the endless loop routine is very, very small.  8-)

-- Todd Vierling <>