summaryrefslogtreecommitdiff
path: root/include/melf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/melf.h')
-rw-r--r--include/melf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/melf.h b/include/melf.h
index a1c88c2..cf0a1b5 100644
--- a/include/melf.h
+++ b/include/melf.h
@@ -6,6 +6,7 @@
#include <elf.h>
#include <arpa/inet.h>
+/// mips is a big endian system
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define B32(n) (__bswap_constant_32(n))
#define B16(n) (__bswap_constant_16(n))
@@ -32,7 +33,7 @@ static const Elf32_Ehdr MIPS_ELF_EHDR =
.e_machine = B16(EM_MIPS),
.e_version = B32(EV_CURRENT),
.e_entry = 0x00,
- .e_flags = B32(EF_MIPS_ARCH_32R6 | EF_MIPS_NAN2008 | EF_MIPS_ABI_O32),
+ .e_flags = 0x00,
.e_ehsize = B16(sizeof(Elf32_Ehdr)),
.e_phentsize = B16(sizeof(Elf32_Phdr)),
.e_shentsize = B16(sizeof(Elf32_Shdr)),