public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Graeme Russ <graeme.russ@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC][PATCH 00/21] [x86] 'Comming of Age'
Date: Sat, 27 Mar 2010 22:54:03 +1100	[thread overview]
Message-ID: <4BADF1DB.3010404@gmail.com> (raw)
In-Reply-To: <OF16D6F9B1.8F870A88-ONC12576F3.003BCC6C-C12576F3.003CACC0@transmode.se>

Joakim Tjernlund wrote:
>> In the near future, I intend to make it 100% relocatable (i.e. does not
>> need to be loaded at TEXT_BASE) and maybe even add the ability to specify
>> the relocation address.
> 
> I did a few months ago for MPC83xx and sent it to the list. There was some
> discussion but in the end it wasn't applied because it was too invasive.
> PPC is especially bad as it needs to relocate string literals too.
> 
> Search for LINK_OFF if you want to see what I did
> 

Yes, I saw a bit of that thread and you patches an I would agree that they
were too invasive. x86 is not that great for relocation either (all calls
are absolute as well as references to .text). Have a look at board_init_f()
in lib_i386\board.c - it has a very basic parsing of the ELF relocation
information.

I tried to champion this as a cross-platform method of achieving full
relocation and the killing off of all those ugly reloc_off hacks all over
the place. Unfortunately, I think the code size and time penalty may have
been too great in the end.

To implement full relocation, I simply need to add an additional parameter
to this function which provides the 'link versus load' offset which will
get applied to the 'load versus run' offset calculation

  reply	other threads:[~2010-03-27 11:54 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25 11:22 [U-Boot] [RFC][PATCH 00/21] [x86] 'Comming of Age' Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 01/21] [x86] Add unaligned.h Graeme Russ
2010-03-25 17:45   ` Mike Frysinger
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 02/21] [x86] #ifdef out getenv_IPaddr() Graeme Russ
2010-03-25 11:45   ` Vipin Kumar
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 03/21] [x86] Fix MMCR Access Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 04/21] [x86] Add register dump to crash handlers Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 05/21] [x86] Fix do_go_exec() Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 06/21] [x86] Fix sc520 memory size reporting Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 07/21] [x86] Split sc520 memory sizing versus reporting Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 08/21] [x86] Add RAM bootstrap functionality Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 09/21] [x86] Move GDT to a safe location in RAM Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 10/21] [x86] Pass relocation offset into Global Data Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 11/21] [x86] Fix copying of Real-Mode code into RAM Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 12/21] [ns16550] Enable port-mapped access Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 13/21] [x86] Use CONFIG_SERIAL_MULTI Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 14/21] [x86] Provide weak PC/AT compatibility setup function Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 15/21] [x86] Fix support for booting bzImage Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 16/21] [sc520] Allow boards to override udelay Graeme Russ
2010-03-25 11:22 ` [U-Boot] [RFC][PATCH 17/21] [eNET] Fix Flash Write Graeme Russ
2010-03-25 11:23 ` [U-Boot] [RFC][PATCH 18/21] [eNET] Fix CONFIG_SYS_HZ to be 1000 Graeme Russ
2010-03-25 11:23 ` [U-Boot] [RFC][PATCH 19/21] [eNET] Add support for onboard RTL8100B (RTL8139) chips Graeme Russ
2010-04-05  5:32   ` Ben Warren
2010-04-05 22:21     ` Graeme Russ
2010-03-25 11:23 ` [U-Boot] [RFC][PATCH 20/21] [eNET] Add PC/AT compatibility setup function Graeme Russ
2010-03-25 11:23 ` [U-Boot] [RFC][PATCH 21/21] Use SC520 MMCR to reset eNET board Graeme Russ
2010-03-26 15:55 ` [U-Boot] [RFC][PATCH 00/21] [x86] 'Comming of Age' Peter Tyser
2010-03-27  4:33   ` Graeme Russ
2010-03-27 11:02     ` Joakim Tjernlund
2010-03-27 11:54       ` Graeme Russ [this message]
2010-03-27 15:48         ` Joakim Tjernlund
2010-03-28  7:38           ` Graeme Russ
2010-03-28 10:06             ` Joakim Tjernlund

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=4BADF1DB.3010404@gmail.com \
    --to=graeme.russ@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox