[U-Boot] [PATCH 1/2] arm: implement ELF relocations

Reinhard Meyer u-boot at emk-elektronik.de
Wed Oct 6 08:01:08 CEST 2010


Dear Albert Aribaud, Heiko Schocher,
>> ELF relocation tables generated with linker option -pie can
>> be used to fixup code and data in a single loop at relocation,
>> removing the need for manual fixups anywhere else in the code.

To me it looks now like we have dangling use of

CONFIG_SKIP_RELOCATE_UBOOT and CONFIG_SYS_ARM_WITHOUT_RELOC

all over the source, but it appears to me that they can't really
work anymore (I have not tested that).

Although I am not happy to have that removed right now
(for code size concerns), I would suggest to remove all relocation
preventing code which should make the code much more readable. If
really required, a new introduction of a define, mainly changing the
linker options not to emit relocation information and skipping a
few lines of relocation business _could_ be introduced.

Best Regards,
Reinhard




More information about the U-Boot mailing list