Subject: Re: lib/2758: crt0.o pulls in much of libc during linking
To: Chris G Demetriou <Chris_G_Demetriou@ux2.sp.cs.cmu.edu>
From: Bill Sommerfeld <sommerfeld@orchard.medford.ma.us>
List: netbsd-bugs
Date: 09/16/1996 10:59:48
Thanks, Chris, for pointing out that there already is a scrt0.o..
It's just that the i386 compiler doesn't use it..
Fixing this is a one-liner..
#define STARTFILE_SPEC \
"%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:%{!static:crt0%O%s}%{static:scrt0%O%s}}}}"
Put this in the src/gnu/usr.bin/gcc/arch/*/netbsd.h for ports which
have an scrt0.o (everyone except mips and alpha)..
Actually, I'd argue that for simplicity it should go in
src/gnu/usr.bin/arch/netbsd.h for all ports, and make the two outlyers
hardlink crt0.o and scrt0.o..
- Bill