[U-Boot] [PATCH 12/26] ARM: add relocation support
Albert ARIBAUD
albert.aribaud at free.fr
Wed Sep 15 23:06:51 CEST 2010
Le 11/08/2010 20:16, Heiko Schocher a écrit :
> diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
> index 54519b0..88c6427 100644
> --- a/arch/arm/lib/board.c
> +++ b/arch/arm/lib/board.c
> +init_fnc_t *init_sequence[] = {
Tested this code tonight, and I noticed that if the image is run from
another location than the one it was linked for, then access to
init_sequence is not made at the right location. To get correct access
regardless of the image location, init_sequence has to be defined const.
I suspect that the same applies to all globals used by any function
called during board_init_f execution.
Amicalement,
--
Albert.
More information about the U-Boot
mailing list