Hi Dmitry, Dmitriy Chestnykh wrote,
But I know that FDPIC ABIs don't use relative relocations because FDPIC don't have single base address. Probably I can detect whether the toolchain is FDPIC by some predefined compiler macroses and wrap DL_RELOCATE_RELR with #ifndef FDPIC #endif. Would this be a suitable solution?
Yes, __FDPIC__ is defined.
best regards Waldemar