summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-10-05 10:16:45 -0400
committerFreya Murphy <freya@freyacat.org>2024-10-05 10:16:45 -0400
commit64a7a67f0099c656f74ec53083c77674228379fa (patch)
treef20ff3dd6a08b9dcbeef7c57af31f44c5b06dc9a /include
parentfix tests $at reg (diff)
downloadmips-main.tar.gz
mips-main.tar.bz2
mips-main.zip
update mld commentsHEADmain
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