[Lldb-commits] [lldb] [LLDB] Fix debuginfo ELF files overwriting Unified Section List (PR #166635)
Jacob Lalonde via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 5 13:38:57 PST 2025
================
@@ -130,6 +130,42 @@ class ELFRelocation {
RelocUnion reloc;
};
+
+lldb::SectionSP MergeSections(lldb::SectionSP lhs, lldb::SectionSP rhs) {
+ assert(lhs && rhs);
+
+ // We only take the RHS is the LHS is SHT_NOBITS, which would be
+ // represented as a size of 0. Where we can take the rhs.
----------------
Jlalond wrote:
> Also, both sections might be zero filled, so we want to take the lhs in that case.
For my understanding, it wouldn't necessary matter right? We'd have no no data if we took rhs or lhs.
https://github.com/llvm/llvm-project/pull/166635
More information about the lldb-commits
mailing list