This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]