diff options
| author | Freya Murphy <freya@freyacat.org> | 2024-10-09 12:08:58 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2024-10-09 12:08:58 -0400 |
| commit | 720b95b5d993caacae420b24dcf8a39a97b31871 (patch) | |
| tree | 39e94ad23c57d343733025b4e914cc762fb1a5f1 /include/melf.h | |
| parent | add pseudo instructions test (diff) | |
| download | mips-720b95b5d993caacae420b24dcf8a39a97b31871.tar.gz mips-720b95b5d993caacae420b24dcf8a39a97b31871.tar.bz2 mips-720b95b5d993caacae420b24dcf8a39a97b31871.zip | |
add mips1 and mips32r2 isa definitions
Diffstat (limited to 'include/melf.h')
| -rw-r--r-- | include/melf.h | 3 |
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)), |