From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6509 invoked by alias); 2 Aug 2002 17:40:57 -0000 Mailing-List: contact crossgcc-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sources.redhat.com Received: (qmail 6502 invoked from network); 2 Aug 2002 17:40:56 -0000 Received: from unknown (HELO aaron.unix.fryenet) (66.129.209.18) by sources.redhat.com with SMTP; 2 Aug 2002 17:40:56 -0000 Received: (from aaron@localhost) by aaron.unix.fryenet (8.8.8/8.8.8) id KAA04186 for crossgcc@sources.redhat.com; Fri, 2 Aug 2002 10:40:50 -0700 (PDT) Date: Fri, 02 Aug 2002 10:40:00 -0000 From: "Aaron J. Grier" To: crossgcc@sources.redhat.com Subject: Re: File size for arm-elf-gcc Message-ID: <20020802104050.X19148@aaron.unix.fryenet> Mail-Followup-To: "Aaron J. Grier" , crossgcc@sources.redhat.com References: <3d4a45c4.4c6e.0@esatclear.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3d4a45c4.4c6e.0@esatclear.ie>; from mckennad@esatclear.ie on Fri, Aug 02, 2002 at 09:41:40AM +0100 X-SW-Source: 2002-08/txt/msg00013.txt.bz2 On Fri, Aug 02, 2002 at 09:41:40AM +0100, David Mc Kenna wrote: > Using gcc -s file.c successfully reduces the elf file to ~44k. But > when I convert this into Intel Hex, for ease of use, it still is ~28k. > Is there any way to reduce this size? are you looking at filesize, or using the size program? (arm-elf-size) filesize alone can be misleading. > Also when I added the option -Wl,-t it caused gcc to crash out, > > /c/win/arm/bin/../lib/gcc-lib/arm-elf/3.1.1/../../../../arm-elf/bin/ld: warning: > connot find thumb start symbol /c/win/arm/bin/../lib/gcc-lib/arm-elf/3.1.1/crti.o > /c/adi/win/arm/bin/../lib/gcc-lib/arm-elf/3.1.1/../../../../arm-elf/lib/crt0.o: > In function `start': > /c/win/arm/bin/../lib/gcc-lib/arm-elf/3.1.1/../../../../arm-elf/lib/crt0.o(.text+0xd8): > undefined reference to `_init' > /c/win/arm/bin/../lib/gcc-lib/arm-elf/3.1.1/../../../../arm-elf/lib/crt0.o(.text+0xf8): > undefined reference to `_fini' > collect2: ld returned 1 exit status "it hasn't done that before." :) are there other linker options normally passed that perhaps -Wl,-t is overriding? you may need to include those as well... -- Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com