diff options
| author | Brian Potchik <brian@vector35.com> | 2026-02-23 09:08:14 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2026-02-23 09:08:14 -0500 |
| commit | 0c3a47ac15bc49c65b00d8e0a0d85f9ed970b759 (patch) | |
| tree | 559e006511f44592e7b4ac7f6f2c64e893e6d5cd /view/elf | |
| parent | b079771e37b1f8277a815ee089e012f9130be2a4 (diff) | |
Revert "guard against empty .interp and .dynamic"
This reverts commit 4573354f23da495099983dac4b665988cd837ff5.
Diffstat (limited to 'view/elf')
| -rw-r--r-- | view/elf/elfview.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/view/elf/elfview.cpp b/view/elf/elfview.cpp index ef325474..a3d60456 100644 --- a/view/elf/elfview.cpp +++ b/view/elf/elfview.cpp @@ -550,10 +550,8 @@ bool ElfView::Init() break; } - if (!foundMatch && i.memorySize) + if (!foundMatch) AddAutoSection(".dynamic", adjustedVirtualAddr, i.memorySize, ReadOnlyDataSectionSemantics, "DYNAMIC", i.align, entrySize); - else if (!foundMatch) - m_logger->LogWarn("Skipping zero-length .dynamic section at 0x%" PRIx64, adjustedVirtualAddr); } else if (i.type == ELF_PT_INTERP) { @@ -574,10 +572,8 @@ bool ElfView::Init() break; } - if (!foundMatch && i.memorySize) + if (!foundMatch) AddAutoSection(".interp", adjustedVirtualAddr, i.memorySize, ReadOnlyDataSectionSemantics, "PROGBITS", i.align); - else if (!foundMatch) - m_logger->LogWarn("Skipping zero-length .interp section at 0x%" PRIx64, adjustedVirtualAddr); DefineDataVariable(adjustedVirtualAddr, Type::ArrayType(Type::IntegerType(1, true), i.fileSize)); DefineAutoSymbol(new Symbol(DataSymbol, "__elf_interp", adjustedVirtualAddr, LocalBinding)); |
