https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114941

--- Comment #3 from jcmvbkbc at gcc dot gnu.org ---
(In reply to Ian Lance Taylor from comment #2)
> What is the correct way to get the address at which the shared library was
> loaded when using FDPIC?

There's no single base address in case of FDPIC, the macro __RELOC_POINTER(ptr,
loadaddr) can be used with the elf32_fdpic_loadaddr::dlpi_addr as the last
argument to translate an address according to the load map. An example is
available in the libgcc/unwind-dw2-fde-dip.c

Reply via email to