[U-Boot] Size of external u-boot commands

Wolfgang Denk wd at denx.de
Thu Mar 26 22:15:55 CET 2009


Dear Jon Smirl,

In message <9e4733910903261350v21bf16c5l5729927048e0df3b at mail.gmail.com> you wrote:
>
> > I'm not sure how you calculate sizes, or how you link your
> > applications. Note that classical standalone application do not link
> > against any libraries, so they are really small:
>
> The *.bin files are ending up at 60-75K.  Adding this to the linker

Yes, but that's mostly empty space, due to the alignment requirments
in the linker script.

> script fixes it.
>   .gcc_except_table : ONLY_IF_RO { KEEP (*(.gcc_except_table))
> *(.gcc_except_table.*) }
>
> Approximately 60KB of zeros are getting inserted into the *.bin files.

But this is just a "gap", it e. it is not used space; if you have
bigger program code, or if you change your alignment requirements, you
will see different (much smaller) values.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If a packet hits a pocket on a socket on a port,
And the bus is interrupted as a very last resort,
And the address of the memory makes your floppy disk abort,
Then the socket packet pocket has an error to report! - Ken Burchill?


More information about the U-Boot mailing list