diff options
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | 2010-10-14 11:51:44 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-18 22:39:37 +0200 |
commit | d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 (patch) | |
tree | b818dd380265c89f435900b03c49a1cbf07534d4 /common/cmd_display.c | |
parent | d98b0523cfaaedeecb263b15c121c0727b0d80b9 (diff) | |
download | u-boot-imx-d1e0b10accdbac2e0a8b2cbf7c589645442f87c5.zip u-boot-imx-d1e0b10accdbac2e0a8b2cbf7c589645442f87c5.tar.gz u-boot-imx-d1e0b10accdbac2e0a8b2cbf7c589645442f87c5.tar.bz2 |
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>
Diffstat (limited to 'common/cmd_display.c')
0 files changed, 0 insertions, 0 deletions