crosstool-generated toolchain produces massive ELF executable

Dave Korn dave.korn@artimi.com
Tue Jan 31 10:43:00 GMT 2006


On 30 January 2006 19:19, Robert P. J. Day wrote:

> i'll look more closely this afternoon.  i'm guessing it's because the
> KPIT toolchain uses newlib and not glibc, but i still don't see why that
> would make that kind of difference.  i mean, from 80K to almost 400K?  
> 
> i realize newlib is a more lightweight C library but it still doesn't
> make a whole lot of sense to me.  yet. 


  Sometimes using just a few simple glibc functions can inadvertently pull in a whole boatload of other dependencies.  Does
compiling with -fno-exceptions help?

  Otherwise you're just going to have to look at the output of the linker map where it shows which symbols caused which other
symbols to be pulled in and figure it out.  Is there a sprintf() call somewhere you could leave out, for instance?

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org



More information about the crossgcc mailing list