From 64a7a67f0099c656f74ec53083c77674228379fa Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 5 Oct 2024 10:16:45 -0400 Subject: update mld comments --- include/melf.h | 2 +- include/mlimits.h | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'include') 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 -- cgit v1.2.3-freya