From: Kenneth Johansson <kenneth@southpole.se>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Fixup entries
Date: Wed, 09 Apr 2008 16:46:53 +0200 [thread overview]
Message-ID: <1207752413.6954.52.camel@localhost.localdomain> (raw)
In-Reply-To: <1207740219.5826.71.camel@gentoo-jocke.transmode.se>
On Wed, 2008-04-09 at 13:23 +0200, Joakim Tjernlund wrote:
> On Wed, 2008-04-09 at 11:32 +0200, Kenneth Johansson wrote:
> > What is the fixup section used for ?
> >
> > of the 274 cards that build on my MAKEALL not one has any entries into
> > this section.
>
> These are needed for relocation of function pointers(and possible some
> think more). There was an attempt by Grant Likely to enable this
> functionalty, but some toolchains had problems with so the function
> was disabled. If you undo commit
> 1c3dd43338a077165e7e0309cb3994e65d2bdbf8 you will enable it again for
> powerpc.
>
> Jocke
aaahhaa so that is how it's working.
I remember having problem understanding this when I did the command
section and ended up doing a manual relocation of the command table. But
compiling with -mrelocatable and going over the .fixup section instead I
can now remove that extra code and it works fine.
It's not easy to understand the ABI.
I removed the -fPIC and only used -mrelocatable and that works too.
Wonder if there is something else in u-boot that use function pointers
and work by accident due to the fact that the old address in flash is
still valid.
---
`-mrelocatable'
`-mno-relocatable'
On embedded PowerPC systems generate code that allows (does not
allow) the program to be relocated to a different address at
runtime. If you use `-mrelocatable' on any module, all objects
linked together must be compiled with `-mrelocatable' or
`-mrelocatable-lib'.
next prev parent reply other threads:[~2008-04-09 14:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 9:32 [U-Boot-Users] Fixup entries Kenneth Johansson
2008-04-09 11:23 ` Joakim Tjernlund
2008-04-09 14:46 ` Kenneth Johansson [this message]
2008-04-09 16:19 ` Joakim Tjernlund
2008-04-09 23:00 ` kenneth johansson
2008-04-09 23:03 ` Joakim Tjernlund
2008-04-09 23:52 ` kenneth johansson
2008-04-14 19:08 ` Kenneth Johansson
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=1207752413.6954.52.camel@localhost.localdomain \
--to=kenneth@southpole.se \
--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.