summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/melf.h2
-rw-r--r--include/mlimits.h9
2 files changed, 5 insertions, 6 deletions
diff --git a/include/melf.h b/include/melf.h
index e7311cd..a1c88c2 100644
--- a/include/melf.h
+++ b/include/melf.h
@@ -32,7 +32,7 @@ static const Elf32_Ehdr MIPS_ELF_EHDR =
.e_machine = B16(EM_MIPS),
.e_version = B32(EV_CURRENT),
.e_entry = 0x00,
- .e_flags = 0x00, // B32(EF_MIPS_ARCH_32R6),
+ .e_flags = B32(EF_MIPS_ARCH_32R6 | EF_MIPS_NAN2008 | EF_MIPS_ABI_O32),
.e_ehsize = B16(sizeof(Elf32_Ehdr)),
.e_phentsize = B16(sizeof(Elf32_Phdr)),
.e_shentsize = B16(sizeof(Elf32_Shdr)),
diff --git a/include/mlimits.h b/include/mlimits.h
index 12318be..db07c64 100644
--- a/include/mlimits.h
+++ b/include/mlimits.h
@@ -3,12 +3,11 @@
#ifndef __MLIMITS_H__
#define __MLIMITS_H__
-/* Specifies how long a ident, register,
- * instruction name, or any type of variable
- * length text can be inside the lexer.
+/* Specifies how long a stirng extension in a
+ * shdr entry name can be.
*/
-#ifndef MAX_LEX_LENGTH
-#define MAX_LEX_LENGTH 24
+#ifndef MAX_EXT_LENGTH
+#define MAX_EXT_LENGTH 48
#endif
/* Specifices how many max arguments a