[Lldb-commits] [lldb] [LLDB] Support Auxiliary library in ELF format (PR #208905)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 26 02:58:02 PDT 2026


================
@@ -162,7 +164,17 @@ class Symbol : public SymbolContextScope {
 
   bool SetReExportedSymbolSharedLibrary(const FileSpec &fspec);
 
-  Symbol *ResolveReExportedSymbol(Target &target) const;
+  /// Find the symbol this re-exported symbol resolves to.
+  ///
+  /// The library recorded on the symbol is searched first. If
+  /// \p containing_module_sp is provided, the libraries re-exported by that
+  /// module (ObjectFile::GetReExportedLibraries()) are then searched in
+  /// order. This matches the DT_FILTER / DT_AUXILIARY behavior in ELF, where
+  /// a filter library may reference multiple filtees and the dynamic linker
+  /// searches them in the order they appear in the dynamic section.
----------------
DavidSpickett wrote:

This should have some note about MachO then, because as written it looks like this only focuses on ELF.

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


More information about the lldb-commits mailing list