COPY relocs and _r_debug?
Carlos O'Donell
carlos@baldric.uwo.ca
Tue Dec 9 20:00:00 GMT 2003
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.
More information about the Libc-alpha
mailing list