crosstool-generated toolchain produces massive ELF executable
Robert P. J. Day
rpjday@mindspring.com
Mon Jan 30 16:19:00 GMT 2006
On Mon, 30 Jan 2006, Dave Korn wrote:
> On 30 January 2006 15:54, Dan Kegel wrote:
>
> > On 1/30/06, Robert P. J. Day <rpjday@...> wrote:
> >> scenario: directory full of source that creates a relatively small
> >> boot loader for an SH3eb system. the final ELF executable as created
> >> by a downloadable toochain from kpitgnutools.com is < 128K since
> >> that's all of the flash that's allocated for it, so i know that that
> >> toolchain produces a correct output executable.
> >>
> >> when i use a crosstool-generated toolchain, the executable turns out
> >> to be almost 400K in size. that executable is created by linking all
> >> of the object files with the static libs libc.a and libgcc.a ...
> >
> > This sounds familiar. I think it's been discussed on this list before,
> > and it turned out that the extra space was debugging info, or zeroes, or
> > something. What does 'size' say about your old and new executables?
> > e.g. $ size /bin/ls text data bss dec hex filename
> > 69429 880 940 71249 11651 /bin/ls
> > - Dan
>
>
> Or is the kpit toolchain newlib-based, perhaps?
sigh. you're right. that's not mentioned on the home page, but is
mentioned in the RELEASE_NOTES file. argh.
but would that still explain the massive difference in size? i've
never worked with newlib as opposed to glibc.
rday
------
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