summaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2025-08-14 10:13:21 -0400
committerPeter LaFosse <peter@vector35.com>2025-08-14 10:13:21 -0400
commit66b933288095071fb19f6124af14c812e58c09bd (patch)
treec1ac80718cda1811265f4b35ef2f6518ccc16d9e /view
parent24a67b59ae9149c1c79720283c0c0f876c5dbc5c (diff)
Ensure ELFView only add segments in a Begin/EndBulkAddSegments context
Diffstat (limited to 'view')
-rw-r--r--view/elf/elfview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/elf/elfview.cpp b/view/elf/elfview.cpp
index 1e7705a3..29914ca7 100644
--- a/view/elf/elfview.cpp
+++ b/view/elf/elfview.cpp
@@ -583,6 +583,7 @@ bool ElfView::Init()
vector<Elf64SectionHeader> relocSections, relocASections;
Elf64SectionHeader symbolTableSection;
+ BeginBulkAddSegments();
uint64_t segmentStart = 0;
for (size_t i = 1; i < m_elfSections.size(); i++)
{
@@ -700,6 +701,8 @@ bool ElfView::Init()
GetParentView()->AddAutoSection(sectionNames[i], m_elfSections[i].offset, m_elfSections[i].size, DefaultSectionSemantics, type, m_elfSections[i].align, m_elfSections[i].entrySize, linkedSection, infoSection, m_elfSections[i].info);
}
}
+
+ EndBulkAddSegments();
// Apply architecture and platform
if (!m_arch)
{