From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15154 invoked by alias); 15 Oct 2002 12:20:36 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 15147 invoked from network); 15 Oct 2002 12:20:36 -0000 Received: from unknown (HELO mailhost.stack.nl) (131.155.140.140) by sources.redhat.com with SMTP; 15 Oct 2002 12:20:36 -0000 Received: from turtle.stack.nl (turtle.stack.nl [2001:610:1108:5010:202:b3ff:fe17:a070]) by mailhost.stack.nl (Postfix) with ESMTP id 9E7C1A3012 for ; Tue, 15 Oct 2002 14:20:35 +0200 (CEST) Received: by turtle.stack.nl (Postfix, from userid 1663) id 7749F2E; Tue, 15 Oct 2002 14:20:35 +0200 (CEST) Date: Tue, 15 Oct 2002 05:20:00 -0000 From: Michiel Buddingh' To: gcc-help@gcc.gnu.org Subject: Re: Giant executables.. what am I doing wrong? Message-ID: <20021015122035.GA42443@stack.nl> References: <20021014234939.GA35014@stack.nl> <003d01c273de$f0768bb0$0100a8c0@windows9q3yn19> <20021015002144.GA35401@stack.nl> <004d01c273e2$af2f48f0$0100a8c0@windows9q3yn19> <20021015014958.GA36140@stack.nl> <004b01c27444$18093550$c800a8c0@pdc1.boxcarmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004b01c27444$18093550$c800a8c0@pdc1.boxcarmedia.com> User-Agent: Mutt/1.4i X-SW-Source: 2002-10/txt/msg00192.txt.bz2 On Tue, Oct 15, 2002 at 08:12:12AM -0400, Joshua Nye wrote: > If you run 'nm' on your pre-stripped executable you will > see all the compiled in functions from the C library and > any other libraries. When you do a static compile it > doesn't just include only the needed function(s), but the > entire C library .a file. I see. But that's a bit ridiculous, don't you agree? Are you sure there isn't a way to link only the functions my program needs, rather than all the functions in the library? -- -- Michiel