[U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations

Reinhard Meyer u-boot at emk-elektronik.de
Tue Oct 5 16:06:33 CEST 2010


Dear Albert ARIBAUD,
>>> - pure ELF format (8 bytes per relocation plus .dynsym)
>>>
>>> ... already there, and then to be done:
>>>
>>> - unified 32-bit format (half the size of pure ELF)
>>>
>>> - unified 16-bit delta format (a fourth of the size of pure ELF)
>>
>> Even an 8-bit delta format is possible:
>> use the value of 0x00 to skip forward 256 addresses, other values to
>> patch..
>> Assuming that all relocations must be on a 32 bit boundary, the delta
>> values
>> could even be multiplied by 4 :)
> 
> i can see ASN.1-style variable-length integer encoding creeping around,
> just waiting to be invoked thrice. :)

Hmm, maybe half bit 1/PI encryption?

Nah - we don't want the reloc algo to get larger than the u-boot
we want to relocate...

>> If you want to look at it, I can make a patch.
> 
> Please do !

Is there under the nice subject "[PATCH] futile c relocation attempt" ;)

Reinhard



More information about the U-Boot mailing list