This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File size for arm-elf-gcc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]