Created attachment 206018 [details]
Although the majority of OpenPOWER ELF V2 ABI use is on Little Endian, it is fully specified and is used in Big Endian mode as well.
As such, the correct detection of an ELFv2 system is via the _CALL_ELF preprocessor define, not the endianness.
This fixes JIT crashes on:
FreeBSD PowerPC64 ELFv2 variant (an experimental build)
on systems such as the Raptor Computing Systems TALOS II.
lgtm, go ahead and commit it please
A commit references this bug:
Date: Tue Jul 30 12:36:20 UTC 2019
New revision: 507638
devel/pcre2: Correctly detect OpenPOWER 64-bit ELFv2 ABI
Submitted by: bdragon
Reported by: bdragon
Approved by: krion (maintainer), linimon (mentor)
Obtained from: https://bugs.exim.org/show_bug.cgi?id=2353
Differential Revision: https://reviews.freebsd.org/D21063