[U-Boot] [PATCH v2] board_r - fixup functions table after relocation

2014-01-20 Thread Alexey Brodkin
This is only required for PIC relocation and doesn't apply to modern PIE relocation which does data relocation as well as code. init_sequence_r is just an array that consists of compile-time adresses of init functions. Since this is basically an array of integers (pointers to void to be more

Re: [U-Boot] [PATCH v2] board_r - fixup functions table after relocation

2014-01-20 Thread Masahiro Yamada
Hello Alexey, diff --git a/common/board_r.c b/common/board_r.c index 86ca1cb..3462590 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -903,9 +903,16 @@ init_fnc_t init_sequence_r[] = { void board_init_r(gd_t *new_gd, ulong dest_addr) { + int i; This emits a warning if