================ @@ -402,6 +413,29 @@ class ObjectFileELF : public lldb_private::ObjectFile { /// .gnu_debugdata section or \c nullptr if an error occured or if there's no /// section with that name. std::shared_ptr<ObjectFileELF> GetGnuDebugDataObjectFile(); + + /// Get the bytes that represent the .dynamic section. + /// + /// This function will fetch the data for the .dynamic section in an ELF file. + /// If the ELF file is loaded from a file on disk, it will use the PT_DYNAMIC + /// program header to extract the data and fall back to using the section + /// headers. If the ELF file is loaded from memory, it will use the PT_DYNAMIC ---------------- labath wrote:
I believe these functions shouldn't distinguish whether the file is in memory or not, but rather whether it has section headers present. https://github.com/llvm/llvm-project/pull/101237 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits