From 1ffdb4f5be08892a5355a99e715f55c07d0bc1a6 Mon Sep 17 00:00:00 2001 From: Mathieu Chouquet-Stringer Date: Tue, 11 May 2004 22:51:44 -0700 Subject: [PATCH] [MODULES]: Fix endianness in modprobe. --- scripts/modpost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/modpost.c b/scripts/modpost.c index 5205c2bf80cd1..662e75b2f780b 100644 --- a/scripts/modpost.c +++ b/scripts/modpost.c @@ -267,6 +267,7 @@ parse_elf(struct elf_info *info, const char *filename) hdr->e_shoff = TO_NATIVE(hdr->e_shoff); hdr->e_shstrndx = TO_NATIVE(hdr->e_shstrndx); hdr->e_shnum = TO_NATIVE(hdr->e_shnum); + hdr->e_machine = TO_NATIVE(hdr->e_machine); sechdrs = (void *)hdr + hdr->e_shoff; info->sechdrs = sechdrs; -- 2.53.0