From 044dec0bfa0f3f8f62f7703d6b0a8600c1354dc5 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Tue, 21 Jan 2025 23:13:51 +0800 Subject: [ENV] Initial refactor of env variables infrastructure (#2274) * [ENV] Initial refactor of env variables infrastructure * Ported BOX64_DYNAREC_LOG * Ported more options * Ported BOX64_MALLOC_HACK * Ported BOX64_DYNAREC_TEST * Ported more options * Ported more options * Ported more options * Ported all options * Removed old rcfile parser * Fix * review * fix * fix * more fixes --- src/elfs/elfparser32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/elfs/elfparser32.c') diff --git a/src/elfs/elfparser32.c b/src/elfs/elfparser32.c index c12ab40d..f8a0dca0 100755 --- a/src/elfs/elfparser32.c +++ b/src/elfs/elfparser32.c @@ -178,14 +178,14 @@ elfheader_t* ParseElfHeader32(FILE* f, const char* name, int exec) FreeElfHeader(&h); return NULL; } - if(box64_dump) DumpMainHeader32(&header, h); + if (BOX64ENV(dump)) DumpMainHeader32(&header, h); LoadNamedSection(f, h->SHEntries._32, h->numSHEntries, h->SHStrTab, ".strtab", "SymTab Strings", SHT_STRTAB, (void**)&h->StrTab, NULL); LoadNamedSection(f, h->SHEntries._32, h->numSHEntries, h->SHStrTab, ".symtab", "SymTab", SHT_SYMTAB, (void**)&h->SymTab._32, &h->numSymTab); - if(box64_dump && h->SymTab._32) DumpSymTab32(h); + if (BOX64ENV(dump) && h->SymTab._32) DumpSymTab32(h); LoadNamedSection(f, h->SHEntries._32, h->numSHEntries, h->SHStrTab, ".dynamic", "Dynamic", SHT_DYNAMIC, (void**)&h->Dynamic._32, &h->numDynamic); - if(box64_dump && h->Dynamic._32) DumpDynamicSections32(h); + if (BOX64ENV(dump) && h->Dynamic._32) DumpDynamicSections32(h); // grab DT_REL & DT_RELA stuffs // also grab the DT_STRTAB string table { -- cgit 1.4.1