From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12822 invoked by alias); 15 Oct 2002 12:19:35 -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 12814 invoked from network); 15 Oct 2002 12:19:34 -0000 Received: from unknown (HELO lars.boxcarmedia.com) (209.213.0.162) by sources.redhat.com with SMTP; 15 Oct 2002 12:19:34 -0000 Received: from josh (unknown [209.213.12.200]) by lars.boxcarmedia.com (Postfix) with SMTP id B1F12122DC8; Tue, 15 Oct 2002 08:19:29 -0400 (EDT) Message-ID: <007401c27445$1c126c10$c800a8c0@pdc1.boxcarmedia.com> From: "Joshua Nye" To: "Michiel Buddingh'" , 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> Subject: Re: Giant executables.. what am I doing wrong? Date: Tue, 15 Oct 2002 05:19:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-10/txt/msg00190.txt.bz2 > 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. That's why I recommended going with a smaller ^^^^^^^^^^^^^^^^^^^^^^^^ Whoops. That's not entirely correct. Only all the other functions in the C object file that the needed function happened to be in. --josh