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

--- Comment #9 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #8)
> 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.

It's the e_version field in the ELF header.  So something like

ehdr.e_machine == EM_PPC64 && ehdr.e_version == 1

Reply via email to