[Lldb-commits] [lldb] [lldb][FreeBSD] Add dynamic loader handle class for FreeBSD Kernel (PR #67106)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 22 16:01:48 PDT 2023


================
@@ -935,6 +935,16 @@ lldb_private::Address ObjectFileELF::GetEntryPointAddress() {
 }
 
 Address ObjectFileELF::GetBaseAddress() {
+  if (GetType() == ObjectFile::eTypeObjectFile) {
+    for (SectionHeaderCollIter I = std::next(m_section_headers.begin());
+         I != m_section_headers.end(); ++I) {
----------------
clayborg wrote:

> For my own understanding, why do we start at the 2nd section header?

The first one is all zeroes in every ELF file

https://github.com/llvm/llvm-project/pull/67106


More information about the lldb-commits mailing list