From owner-freebsd-current Wed Sep 25 23:34:58 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA29023 for current-outgoing; Wed, 25 Sep 1996 23:34:58 -0700 (PDT) Received: from alpo.whistle.com (s205m1.whistle.com [207.76.205.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA28988 for ; Wed, 25 Sep 1996 23:34:52 -0700 (PDT) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.7.5/8.7.3) with SMTP id XAA15413; Wed, 25 Sep 1996 23:31:57 -0700 (PDT) Message-ID: <324A22F6.167EB0E7@whistle.com> Date: Wed, 25 Sep 1996 23:30:14 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: dg@root.com CC: current@freebsd.org Subject: Re: BLOAT in minimal programs References: <199609260620.XAA00219@root.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk David Greenman wrote: > > ... > >THIS IS NOT MINIMAL! > >I DID NOT WANT ALL THIS CRAP! > >why oh why did I get malloc? > > Because atexit() uses it to remember exit callouts (see crt0.c). so why isn't atexit in libc? I certainly didn't call it.. of course I haven't checked.. it might well be there.. > > >vfprintf? > >__CurrentRuneLocale ? > >hell it doesn't even contain a STRING let alone a default nationality! > > I think this is all because malloc (or something in crt0.c) calls a stdio > funtion like printf either directly or indirectly via a perror() or equivilent. > Of course Runes comes in because of vfprintf, etc, etc. so do we have a way of telling cc to link with a more sensible crt0? surely we can do something.. howabout split crt0.. ? > > -DG > > David Greenman > Core-team/Principal Architect, The FreeBSD Project