[U-Boot] [PATCH RFC 3/3] arm920t: do not relocate NULL pointer

Albert ARIBAUD
2010-11-30T08:32:33Z

Le 30/11/2010 08:06, Andreas Bie?mann a ?crit :
> Signed-off-by: Andreas Bie?mann<andreas.devel@googlemail.com>

> + cmp r1, #0 /* symbol == NULL ? */
> + beq fixnext

Nak. Don't hide a null pointer. NULL pointers are *not* relocated, since
they are a constant. If a NULL ends up in relocation tables, that is
because of a corruption *or* because it was to be relocated, and should
thus never be ignored.

Amicalement,
--
Albert.