[U-Boot] Most ARM CPU's have buggy clear_bss?

Albert ARIBAUD
2010-10-29T09:29:09Z

Le 28/10/2010 13:38, Wolfgang Denk a ?crit :

>>> CONFIG_RELOC_FIXUP_WORKS
>>
>> Not needed for ARM when ELF relocation is used. I don't know whether other
>> architectures still need it. Do NOT set it on ARM or you get in trouble by
>> some addresses being relocated twice.
>
> Sure? My understanding is that it MUST be set since we have
> elf_reloc?

It is needed if code exists wich is conditioned on it, but such code
should be cleaned up to keep only the "ifdef" part of it.

> My understanding is that CONFIG_SYS_ARM_WITHOUT_RELOC and
> CONFIG_SKIP_RELOCATE_UBOOT should not be set (and I don;t know what
> happens if you do), but CONFIG_RELOC_FIXUP_WORKS is automaticlly set
> for all ARM systems now.

I'd agree with this.

Amicalement,
--
Albert.