From dcb506e8e0682905f14a1ed28c63ac0fc8381189 Mon Sep 17 00:00:00 2001 From: jeffman Date: Sat, 8 Apr 2017 01:23:06 -0400 Subject: [PATCH] Don't assign the SH string table to the SYM string table --- Core/ELF/ElfFile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/ELF/ElfFile.cpp b/Core/ELF/ElfFile.cpp index 7353e521..b088dcc7 100644 --- a/Core/ELF/ElfFile.cpp +++ b/Core/ELF/ElfFile.cpp @@ -411,7 +411,10 @@ bool ElfFile::load(ByteArray& data, bool sort) symTab = section; break; case SHT_STRTAB: - strTab = section; + if (i != fileHeader.e_shstrndx) + { + strTab = section; + } break; }