[U-Boot] [TESTING PATCH] ppc: Relocation test patch

Joakim Tjernlund joakim.tjernlund at transmode.se
Fri Sep 18 17:33:19 CEST 2009


Peter Tyser <ptyser at xes-inc.com> wrote on 18/09/2009 17:21:57:
> >
> > Sorry, I don't have an example. Just a guess, weak function references:
> >
> > void weak_fun(void) __attribute__ ((weak));
> > if (weak_fun)
> >    weak_fun();
>
> Using default weak functions as well as overridden weak functions both
> definitely work.  So the pointers must be being updated correctly.  I
> guess I'm not sure where specifically a problem could arise.  Let me
> know if you have any additional details.  I'm hoping to send the patches
> out later today, maybe some review/testing will make things clearer.

This does not work:

void weak_fun(void) __attribute__ ((weak));
printf("weak_fun:%p\n", weak_fun);

prints "weak 17f9c000" after relocation
for me, should be NULL when weak_fun is undefined.



More information about the U-Boot mailing list