This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
COPY relocs and _r_debug?
- From: Carlos O'Donell <carlos at baldric dot uwo dot ca>
- To: libc-alpha <libc-alpha at sources dot redhat dot com>
- Date: Tue, 9 Dec 2003 14:53:27 -0500
- Subject: COPY relocs and _r_debug?
libc-alpha,
Trying to find out why '_r_debug' doesn't work on hppa. I noticed that
DT_DEBUG does indeed show the correct address. Iterating the dynamic
sections looking for DT_DEBUG, and using that vaue instead of _r_debug
fixes all the neededtest failures.
I noticed that around rtld.c:1652 we run through _dl_relocate_object,
and this eventually calls elf_machine_rela and relocates the COPY reloc
*before* _dl_initialize_debug has been run atleast once to give the
first setup values.
As such the _r_debug that the application sees is just zeros. What is
the proper order here?
c.