Hi Wolfgang,

On Saturday 12 January 2008, Wolfgang Denk wrote:
> In message <[EMAIL PROTECTED]> you wrote:
> > With recent toolchain versions, some boards would not build because
> > or errors like this one (here for ocotea board when building with
> > ELDK 4.2):
> > ppc_4xx-ld: section .bootpg [fffff000 -> fffff23b] overlaps section .bss
> > [fffee900 -> fffff8ab]
> >
> > For many boards, the .bss section is big enough that it wraps around
> > at the end of the address space (0xFFFFFFFF), so the problem will not
> > be visible unless you use a 64 bit tool chain for development. On
> > some boards however, changes to the code size (due to different
> > optimizations) we bail out with section overlaps like above.
> >
> > The fix is to add the NOLOAD attribute to the .bss and .sbss
> > sections, telling the linker that .bss does not consume any space in
> > the image.
> >
> > Signed-off-by: Wolfgang Denk <[EMAIL PROTECTED]>
>
> Applied, after re-rworking it for  the  boards  changed,  renamed  or
> added meanwhile.

Thanks. This fixes overlapping problems with bss as seen on Ocotea with
ELDK 4.2. But unfortunately I still have other overlapping problems for
example on Katmai with ELDK 4.2:

[EMAIL PROTECTED] u-boot (master)]$ ./MAKEALL katmai
Configuring for katmai board...
44x_spd_ddr2.c: In function 'initdram':
44x_spd_ddr2.c:392: warning: 'selected_cas' may be used uninitialized in this 
function
ppc_4xx-ld: section .bootpg [fffff000 -> fffff377] overlaps section 
.data.rel.local [ffffeba8 -> fffff3f7]
ppc_4xx-ld: u-boot: section .bootpg lma 0xfffff000 overlaps previous sections
ppc_4xx-ld: u-boot: section .data.rel.ro lma 0xfffff3f8 overlaps previous 
sections
ppc_4xx-ld: u-boot: section .u_boot_cmd lma 0xfffff408 overlaps previous 
sections
make: *** [u-boot] Error 1

These error are not seen with ELDK 4.1 by the way. Any ideas what might
be causing this and/or how to solve it?

Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: [EMAIL PROTECTED]
=====================================================================

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to