Subject: Re: -nostdlib and NetBSD ELF note
To: Todd Vierling <email@example.com>
From: David Brownlee <firstname.lastname@example.org>
Date: 09/17/2002 17:36:21
On Mon, 16 Sep 2002, Todd Vierling wrote:
> 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-)
OK, with a -D_start=main -DWINDOWS (so it checks for arguments
differently) it all seems to work :)
David/absolute -- www.netbsd.org: No hype required --