From: Grant Likely <glikely@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Relocation of symbols?
Date: Mon, 27 Jun 2005 10:26:31 -0600 [thread overview]
Message-ID: <528646bc05062709261380120e@mail.gmail.com> (raw)
In-Reply-To: <20050627134030.85669CD555@atlas.denx.de>
On 6/27/05, Wolfgang Denk <wd@denx.de> wrote:
> Dear Andreas,
>
> in message <3YJEA6HGSNLF3264765ZTQSQYSRNJI43.42bffa31@pc-block> you wrote:
>
> It's just that not many people really understand all the details how
> the relocation works.
<stuff deleted>
> I guess you can probably tell GCC to add GOT entries for these
> pointers, but I have to admit that I don't know off-hand what's the
> most efficient way.
>
Just to satisfy my curiosity...
What is the design decision behind u-boot building as a single
relocatable binary (with all the complexities associated with
relocation)? As opposed to a a two stage process with a small chunk
of bootstrap code encapsulating the main u-boot image. The bootstrap
code being linked seperatly from the main image so each image runs in
the address space it is linked to. (like a Linux zImage; bootstrap
code only responsible for initializing RAM, copying the main image and
jumping to it).
I can see that a two stage scheme would sidestep the relocation issues
mentioned above and should make probing with a debugger simpler. What
are the advantages of the single binary approach? Image size perhaps?
Cheers,
g.
next prev parent reply other threads:[~2005-06-27 16:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-27 13:08 [U-Boot-Users] Relocation of symbols? Andreas Block
2005-06-27 13:40 ` Wolfgang Denk
2005-06-27 16:26 ` Grant Likely [this message]
2005-06-27 20:00 ` Wolfgang Denk
2005-06-27 22:21 ` Grant Likely
2005-06-28 0:21 ` Wolfgang Denk
2005-06-28 15:42 ` Grant Likely
2005-06-28 12:50 ` Andreas Block
2005-06-28 14:01 ` Wolfgang Denk
2005-06-28 14:32 ` Andreas Block
2005-06-28 15:21 ` Wolfgang Denk
2005-06-28 15:47 ` Andreas Block
2005-06-29 10:34 ` Andreas Block
2005-06-29 13:32 ` Wolfgang Denk
2005-06-29 14:16 ` Andreas Block
2005-06-29 17:32 ` Wolfgang Denk
2005-06-30 8:10 ` Andreas Block
2005-06-30 11:09 ` Wolfgang Denk
2005-06-29 7:27 ` OT: Sam Beckett (Was: Re: [U-Boot-Users] Relocation of symbols?) Marius Groeger
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=528646bc05062709261380120e@mail.gmail.com \
--to=glikely@gmail.com \
--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.