All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections
Date: Sun, 13 Jan 2008 14:59:18 +0100	[thread overview]
Message-ID: <200801131459.19164.sr@denx.de> (raw)
In-Reply-To: <20080112193430.2B01724755@gemini.denx.de>

Hi Wolfgang,

On Saturday 12 January 2008, Wolfgang Denk wrote:
> In message <1197026214-31034-1-git-send-email-wd@denx.de> 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 <wd@denx.de>
>
> 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:

[stefan at ubuntu 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: office at denx.de
=====================================================================

  reply	other threads:[~2008-01-13 13:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-07 11:16 [U-Boot-Users] [PATCH] Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections Wolfgang Denk
2007-12-07 13:28 ` Josh Boyer
2007-12-11 22:50   ` brino
2007-12-12 11:17     ` Clemens Koller
2007-12-12 11:32       ` [U-Boot-Users] fixed: " Clemens Koller
2008-01-12 19:34 ` [U-Boot-Users] " Wolfgang Denk
2008-01-13 13:59   ` Stefan Roese [this message]
2008-02-03 23:32     ` [U-Boot-Users] [PPC] PLEASE READ - was: " Wolfgang Denk
2008-02-04 10:37       ` Stefan Roese
2008-02-04 16:56       ` Scott Wood
2008-02-04 19:14         ` Wolfgang Denk
2008-02-04 19:17           ` Scott Wood
2008-02-14 22:19             ` Wolfgang Denk
2008-02-15 18:18               ` Joakim Tjernlund
2008-02-06  9:59           ` Joakim Tjernlund
2008-02-06 22:11             ` Wolfgang Denk
2008-02-07  0:20               ` Joakim Tjernlund
2008-02-07 16:13                 ` Wolfgang Denk
2008-02-04 17:40       ` Timur Tabi
2008-02-04 19:16         ` Wolfgang Denk
2008-02-04 19:24           ` Timur Tabi
2008-02-04 20:36             ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200801131459.19164.sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.