summaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2026-02-23 09:08:34 -0500
committerBrian Potchik <brian@vector35.com>2026-02-23 09:08:34 -0500
commit00d3d213121440217b179bc03e1afa881e085755 (patch)
tree9c8a9fa4ab540fcef0ba7832b4dab5cb9274e8c4 /view
parent0c3a47ac15bc49c65b00d8e0a0d85f9ed970b759 (diff)
Revert "validation for zero sized symbol or string tables"
This reverts commit bcc40473b3660005e83f51150bdc17ae177768dc.
Diffstat (limited to 'view')
-rw-r--r--view/elf/elfview.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/view/elf/elfview.cpp b/view/elf/elfview.cpp
index a3d60456..1279dead 100644
--- a/view/elf/elfview.cpp
+++ b/view/elf/elfview.cpp
@@ -1094,14 +1094,10 @@ bool ElfView::Init()
DefineAutoSymbol(new Symbol(DataSymbol, "__elf_hash_table", m_hashHeader, NoBinding));
// Gratuitously create sections for the symbol and string tables if none exist
- if (m_auxSymbolTable.size && !GetSectionsAt(m_auxSymbolTable.offset).size())
+ if (!GetSectionsAt(m_auxSymbolTable.offset).size())
AddAutoSection(".dynamic_symtab", m_auxSymbolTable.offset, m_auxSymbolTable.size, ReadOnlyDataSectionSemantics);
- else if (!m_auxSymbolTable.size)
- m_logger->LogWarn("Skipping zero-length .dynamic_symtab section at 0x%" PRIx64, m_auxSymbolTable.offset);
- if (m_dynamicStringTable.size && !GetSectionsAt(m_dynamicStringTable.offset).size())
+ if (!GetSectionsAt(m_dynamicStringTable.offset).size())
AddAutoSection(".dynamic_strtab", m_dynamicStringTable.offset, m_dynamicStringTable.size, ReadOnlyDataSectionSemantics);
- else if (!m_dynamicStringTable.size)
- m_logger->LogWarn("Skipping zero-length .dynamic_strtab section at 0x%" PRIx64, m_dynamicStringTable.offset);
}
// Parse and create types for ELF GNU hash table