[U-Boot] CONFIG_SKIP_RELOCATE_UBOOT still used?

Alexander Holler
2010-10-29T11:32:08Z

>> In regard to CONFIG_SKIP_RELOCATE_UBOOT I've hit a typo in
>> arch/arm/cpu/arm926ejs/start.S while trying to use this define to build
>> a non relocatable u-boot. In line 383 there is
>>
>> ldr pc, r0
>>
>> which seems to should be
>>
>> ldr pc, [r0]
>
> I don't think it should. r0 is computed to be the address at which to
> branch, so the branch there is direct, not indirect. That could be
> changed to "mov pc, r0" for clarity, though.

binutils 2.20.1 doesn't like "ldr pc, r0". So then it must be "mov pc,
r0" if "ldr pc, [r0]" is wrong.

And above I used the wrong define, this code is only active when

CONFIG_SYS_ARM_WITHOUT_RELOC is defined.

Regards, Alexander