[Lldb-commits] [lldb] [lldb] Make ELF files able to load section headers from memory. (PR #129166)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 10 08:03:48 PDT 2025
================
@@ -1477,32 +1506,32 @@ size_t ObjectFileELF::GetSectionHeaderInfo(SectionHeaderColl §ion_headers,
}
if (idx < section_headers.size())
section_headers.resize(idx);
+ // Sometimes we are able to read the section header memory from an in memory
----------------
labath wrote:
I'm worried about this check as it's untested and its basically impossible to prove it's safe to remove, ever. Can explain how this comes to be and why leaving those SHT_NULL sections in the list is a problem? (I'm thinking whether e.g., we could leave those in, but change the code which consumes them to ignore them)
https://github.com/llvm/llvm-project/pull/129166
More information about the lldb-commits
mailing list