All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Koller <clemens.koller@anagramm.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections
Date: Wed, 12 Dec 2007 12:17:43 +0100	[thread overview]
Message-ID: <475FC357.3000507@anagramm.de> (raw)
In-Reply-To: <14285357.post@talk.nabble.com>

brino schrieb:
 > Hi All,
 >
 > This fix doesn't work with binutils-2.18.  I'm building u-boot for the amcc
 > yosemite board using cygwin and cross binutils-2.18/gcc-4.2.2 for a
 > powerpc-eabi target.

Yes, binutils-2.18 have this broken. binutils-2.17 work fine.

 >  The linker complains that "section .text can't be
 > allocated in segment 0."  The .bss section is by default a NOLOAD section
 > with binutils-2.18 meaning it occupies no space in the file.  However, the
 > .bss section is an ALLOC section meaning it does occupy space in target
 > memory.  The linker runs an error check to make sure all sections will
 > fit within the file and all sections will fit within target memory.  All
 > sections
 > do fit within the file, however the sections do not fit within target memory
 > because of the wrap around end of memory.
 >
 > We could definitely drop the TEXT_BASE address lower which would fix
 > the problem, but isn't ideal since the image would take up more flash for
 > no reason.  We could link with TEXT_BASE=0 and then burn it to flash at
 > address 0xFFF80000 (this is where the current TEXT_BASE is for the
 > yosemite board).  Whats the reason it's linked at 0xFFF80000 anyway?
 > Is there an elf loader which burns it into flash?  There's also the 'AT'
 > attribute in the linker script which may help, however, I don't quite
 > understand the use of it yet.  Any suggestions on how to approach this?

I am about to verify the latest binutils-snapshot. There have been
the following patch included:
http://sourceware.org/ml/binutils/2007-11/msg00235.html
which should fix that issue.

Please be patient... I'll give you an update ASAP.

Regards,

Clemens Koller
__________________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Stra?e 45/1
Linhof Werksgel?nde
D-81379 M?nchen
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com

  reply	other threads:[~2007-12-12 11:17 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 [this message]
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
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=475FC357.3000507@anagramm.de \
    --to=clemens.koller@anagramm.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.