dladdr returns wrong names on hppa

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There was an old message from Guy Martin regarding dladdr not working on hppa:
http://permalink.gmane.org/gmane.linux.ports.hppa/1423

The Debian nss package fails to build because of a dladdr problem:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791537

I created a small test program and a glibc bug report:
https://sourceware.org/bugzilla/show_bug.cgi?id=19415

This code seems wrong on hppa:

ElfW(Addr)
_dl_lookup_address (const void *address)
{
  ElfW(Addr) addr = (ElfW(Addr)) address;
  struct fdesc_table *t;
  unsigned long int i;

  for (t = local.root; t != NULL; t = t->next)
    {
      i = (struct fdesc *) addr - &t->fdesc[0];
      if (i < t->first_unused && addr == (ElfW(Addr)) &t->fdesc[i])
        {
          addr = t->fdesc[i].ip;
          break;
        }
    }

  return addr;
}

Dave
--
John David Anglin	dave.anglin@xxxxxxxx



--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux