glibc dladdr test failure

Guy Martin <[email protected]>
Newsgroups gmane.linux.ports.hppa
Message-ID <20070311201750.0f280e87@localhost>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.