commit | d1e0b10accdbac2e0a8b2cbf7c589645442f87c5 | [log] [tgz] |
---|---|---|
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | Thu Oct 14 11:51:44 2010 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Mon Oct 18 22:39:37 2010 +0200 |
tree | b818dd380265c89f435900b03c49a1cbf07534d4 | |
parent | d98b0523cfaaedeecb263b15c121c0727b0d80b9 [diff] |
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>