[PATCH] Fix tst-addr1 on ppc64 and ia64

Steve Munroe sjmunroe@us.ibm.com
Thu Aug 31 15:56:00 GMT 2006



Jakub Jelinek <jakub@redhat.com> wrote on 08/31/2006 10:38:00 AM:

> Hi!
>
> On ppc64 and ia64 &printf is put into GOT, so the SHN_UNDEF printf
> symbol has zero st_value and thus dladdr (&printf, ...) returns
> a symbol in libc.so.  But, unfortunately, in libc.so _IO_printf
> is an alias to printf, both are global symbols and have the same
> address and size.  Which one comes first in the hash table depends
> on the linker.
>

Thanks I have been scratching my head over that one :)

Steven J. Munroe



More information about the Libc-hacker mailing list