HomeFreeBSD

libelf: correct mips64el test to use ELF header

Description

libelf: correct mips64el test to use ELF header

libelf maintains two views of endianness: e_byteorder, and
e_ident[EI_DATA] in the ELF header itself. e_byteorder is not always
kept in sync, so use the ELF header endianness to test for mips64el.

PR: 231790
Bisected by: sbruno
Reviewed by: jhb
Approved by: re (kib)
MFC with: r338478
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17380

Details

Provenance
emasteAuthored on
Reviewer
jhb
Differential Revision
D17380: libelf: correct mips64 test to use ELF header
Parents
rS339082: Add missing newline in pwarn message.
Branches
Unknown
Tags
Unknown