From ecf6f0512dc9d5362803c8f53423676632e52256 Mon Sep 17 00:00:00 2001 From: karutoh Date: Thu, 15 Feb 2024 15:47:44 -0800 Subject: [PATCH] Changed call to symTab.SetEntries(SYMH_SIZE) --- include/ELF64_Sym.h | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ELF64_Sym.h b/include/ELF64_Sym.h index 66d8a72..2da1a10 100644 --- a/include/ELF64_Sym.h +++ b/include/ELF64_Sym.h @@ -72,7 +72,7 @@ /// A symbol defined in the current component is protected if it is visible in other components but not preemptable, meaning that any reference to such a symbol from within the defining component must be resolved to the definition in that component, even if there is a definition in another component that would preempt by the default rules. A symbol with STB_LOCAL binding may not have STV_PROTECTED visibility. If a symbol definition with STV_PROTECTED visibility from a shared object is taken as resolving a reference from an executable or another shared object, the SHN_UNDEF symbol table entry created has STV_DEFAULT visibility. #define SYM_VIS_PROTECTED 0x03 -#define SYM_SIZE 24 +#define SYMH_SIZE 24 class ELF64_Sym { diff --git a/src/main.cpp b/src/main.cpp index f2c0f31..94cc78b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,7 +45,7 @@ ehs::SInt_32 Main(ehs::Str_8* appName, ehs::Str_8* appVerId, ehs::Version* appVe ELF64_Section symTab(".symtab", 0, SECH_TYPE_SYMTAB, 0, 0, 8); symTab.SetLink(3); symTab.SetInfo(2); - symTab.SetEntries(24); + symTab.SetEntries(SYMH_SIZE); ehs::Serializer& symTabData = symTab.GetData(); ELF64_Sym nullSym;