This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PING for PowerPC: Add msingle-pic-base option
Alan Modra <amodra@gmail.com> wrote on 2010/11/25 08:01:26:
>
> On Wed, Nov 24, 2010 at 02:18:58PM +0100, Joakim Tjernlund wrote:
> > If you could somehow known which got ptrs points to data needing fixup you
> > could do the fixup by following the got ptr.
>
> This would only work for simple programs. How would you cope with
> arrays of initialised pointers, or initialised pointers to pointers?
Ah, true. So this simplification won't work, too bad.
Got any comments on my latest msingle-pic-base patch?
BTW, there is a bug in eabi.asm:__eabi_uconvert, one must not fixup NULL
ptrs. Normally one cannot have NULL ptrs there but there is one special case
that produces NULL:
char *testfun(void) __attribute__((weak));
char *(*myfun)(void) = testfun;
Jocke