Skip to contentSkip to conversation

i386 Full Relocation

U-Boot Graeme Russ 2 participants 3 messages Oct 3, 2009 – Oct 4, 2009

lore
Share & tools
lore
#1 lore raw

Dear Graeme,

Quoted 3 lines · In message <[email protected]> you…

Did you happen to see this patch set fly past your inbox?
(http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/68924)

I've seenit, but had no time yet for a closer look.

Quoted 2 lines

The patch series is a bit dirty, and I would like to clean it up a bit, but would appreciate some feedback on the approach I have taken first

I'm afraid I don't have the slightest clue how this is supposed to work on x86. I always avoided to do any low-level fork for this architecture.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"I say we take off; nuke the site from orbit. It's the only way to be
sure."                                  - Corporal Hicks, in "Aliens"
#2 lore raw
Quoted 7 lines · Wolfgang Denk

Dear Graeme,

Quoted 3 lines · In message <[email protected]> you…

Did you happen to see this patch set fly past your inbox?
(http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/68924)

Quoted 8 lines

I've seenit, but had no time yet for a closer look.

Quoted 2 lines

The patch series is a bit dirty, and I would like to clean it up a bit, but would appreciate some feedback on the approach I have taken first

I'm afraid I don't have the slightest clue how this is supposed to work on x86. I always avoided to do any low-level fork for this architecture.

I don't actually think that the last patch (i.e. the actual relocation patch itself) is specific to x86 (or any other arch) - I actually figured it out from information I found at:

http://www.oit.uci.edu/dcslib/digital_unix/digital-v40d/APS31DTE/DOCU_002.HTM#reldyn_section

Which, as you might guess from the URL, is about Digital Unix and not x86 Linux. This was an absolute gold mine of information in relation to ELF relocation. I think as long as U-Boot is linked as an ELF executable, and the necessary symbols are provided in the linker script to survive the strip step, the method I have implemented should be very portable across all architectures. It would be really good if someone(s) could give it a try on other, currently non-relocating, arches

Quoted 4 lines

Best regards,

Wolfgang Denk

Regards,

Graeme