[parisc-linux] glibc dladdr test failure
Guy Martin
gmsoft at gentoo.org
Sun Mar 11 13:17:50 MDT 2007
Hi all,
The dladdr test of the glibc testsuite fail for the following reason :
in elf/dl-addr.c:30, the address passed is transformed this way :
const ElfW(Addr) addr = DL_LOOKUP_ADDRESS (address);
While in ports/sysdeps/hppa/dl-lookupcfg.h:35, you have this :
/* Clear the bottom two bits so generic code can find the fdesc entry */
#define DL_LOOKUP_ADDRESS(addr) \
(_dl_lookup_address ((void *)((unsigned long)addr & ~3)))
If you don't apply this bitmask, addr is set to the original value of
the passed address and it is resolved correctly.
What should be the correct fix ?
Guy
--
Guy Martin
Gentoo Linux - HPPA port lead
More information about the parisc-linux
mailing list