All of lore.kernel.org
 help / color / mirror / Atom feed
From: J.Hwan.Kim <frog1120@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] question on do_bootm()
Date: Wed, 17 Jun 2009 10:01:36 +0900	[thread overview]
Message-ID: <4A384070.2010002@gmail.com> (raw)

Hi, everyone

I have a question on relocation of boot function table in do_bootm().
The boot function table boot_os[] has a pointer of functions such as
do_bootm_linux().
I think the address of the symbol "do_bootm_linux" has relocated address
by linker.
But there is address-modifying routine in do_bootm()
if (!relocated) {
int i;
for (i = 0; i < ARRAY_SIZE(boot_os); i++)
boot_os[i] += gd->reloc_off;
relocated = 1;
}

Why the routine above is needed?
Isn't the addresses of boot functions already relocated one?

Thanks in advance.

Regards,
J.H.Kim

                 reply	other threads:[~2009-06-17  1:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4A384070.2010002@gmail.com \
    --to=frog1120@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.