https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82368
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- To answer my own question, I think the test whether we want this treatment is: ehdr.e_machine == EM_PPC64 && (ehdr.e_flags & EF_PPC64_ABI) < 2 plus presence of .opd section.