Home
last modified time | relevance | path

Searched hist:d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/arch/powerpc/cpu/mpc86xx/
H A Dstart.Sdiff d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 Thu Oct 14 04:51:44 CDT 2010 Joakim Tjernlund <Joakim.Tjernlund@transmode.se> powerpc: do not fixup NULL ptrs

The fixup routine must not fixup NULL pointers.
Problem can be seen by
char *testfun(void) __attribute__((weak));
char *(*myfun)(void) = testfun;

Then add
printf("myfun:%p, &myfun:%p\n", myfun, &myfun);
before relocation and after relocation.
myfun should be NULL in both cases but it is not.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dstart.Sdiff d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 Thu Oct 14 04:51:44 CDT 2010 Joakim Tjernlund <Joakim.Tjernlund@transmode.se> powerpc: do not fixup NULL ptrs

The fixup routine must not fixup NULL pointers.
Problem can be seen by
char *testfun(void) __attribute__((weak));
char *(*myfun)(void) = testfun;

Then add
printf("myfun:%p, &myfun:%p\n", myfun, &myfun);
before relocation and after relocation.
myfun should be NULL in both cases but it is not.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/
H A Dstart.Sdiff d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 Thu Oct 14 04:51:44 CDT 2010 Joakim Tjernlund <Joakim.Tjernlund@transmode.se> powerpc: do not fixup NULL ptrs

The fixup routine must not fixup NULL pointers.
Problem can be seen by
char *testfun(void) __attribute__((weak));
char *(*myfun)(void) = testfun;

Then add
printf("myfun:%p, &myfun:%p\n", myfun, &myfun);
before relocation and after relocation.
myfun should be NULL in both cases but it is not.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dstart.Sdiff d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 Thu Oct 14 04:51:44 CDT 2010 Joakim Tjernlund <Joakim.Tjernlund@transmode.se> powerpc: do not fixup NULL ptrs

The fixup routine must not fixup NULL pointers.
Problem can be seen by
char *testfun(void) __attribute__((weak));
char *(*myfun)(void) = testfun;

Then add
printf("myfun:%p, &myfun:%p\n", myfun, &myfun);
before relocation and after relocation.
myfun should be NULL in both cases but it is not.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>