[U-Boot] [PATCH 2/4] Merge all mpc85xx platforms to use a single ld script

Wolfgang Denk wd at denx.de
Tue Oct 14 10:57:24 CEST 2008


Dear Trent Piepho,

In message <1223941151-13969-2-git-send-email-tpiepho at freescale.com> you wrote:
> 
> B) The U-Boot image is over 4MB in size.  The image size for this is from
> TEXT_BASE to the end of the reset vector.  It's not the size of the U-Boot
> code as there could be a huge gap between the end of the code and the reset
> vector.  The BSS section does not count for this size, as it goes after the
> reset vector (and it not actually present in the image).  This should be
> the same as the size of the u-boot.bin file.

Where is bss then, if you try to locate it beyond the end of physical
memory? To the best of my understanding there are two  possibilities:
tool  chains  running  on  a  32 bit host will simply wrapr addresses
around, i. e. start placing bss at physical address 0, which  is  not
wrong.  I  don't remember eacty what you get on 64 bit hosts, but the
result is not correct either.


Have you actually tested this code? Didn't you run into such problems?

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
EMACS belongs in <sys/errno.h>: Editor too big!


More information about the U-Boot mailing list