summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-10-02 15:08:41 +0000
committerEd Maste <emaste@FreeBSD.org>2018-10-02 15:08:41 +0000
commit1c45d770a75779c3a08251abffe3dccdc0a8dbf9 (patch)
tree04898a638a31fda24203a32af1e0569801c6d658 /contrib
parent7462fc7f56f598d220003387123f73b371300bd2 (diff)
downloadsrc-test2-1c45d770a75779c3a08251abffe3dccdc0a8dbf9.tar.gz
src-test2-1c45d770a75779c3a08251abffe3dccdc0a8dbf9.zip
Notes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/elftoolchain/libelf/gelf_mips64el.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/elftoolchain/libelf/gelf_mips64el.c b/contrib/elftoolchain/libelf/gelf_mips64el.c
index 02131f0d4335..24a78a71ed23 100644
--- a/contrib/elftoolchain/libelf/gelf_mips64el.c
+++ b/contrib/elftoolchain/libelf/gelf_mips64el.c
@@ -34,8 +34,9 @@ int
_libelf_is_mips64el(Elf *e)
{
- return (e->e_kind == ELF_K_ELF && e->e_byteorder == ELFDATA2LSB &&
- e->e_u.e_elf.e_ehdr.e_ehdr64->e_machine == EM_MIPS);
+ return (e->e_kind == ELF_K_ELF &&
+ e->e_u.e_elf.e_ehdr.e_ehdr64->e_machine == EM_MIPS &&
+ e->e_u.e_elf.e_ehdr.e_ehdr64->e_ident[EI_DATA] == ELFDATA2LSB);
}
/*