[Object][ELF] Add a way to get the dynamic symbol table section.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 7 Feb 2013 23:37:58 +0000 (23:37 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 7 Feb 2013 23:37:58 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174682 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELF.h

index bcd5b11f208480785b58cc00cb05409b1f3bc837..00b8af949f8d4bc56085838f115e39595a872982 100644 (file)
@@ -702,6 +702,10 @@ public:
   virtual library_iterator begin_libraries_needed() const;
   virtual library_iterator end_libraries_needed() const;
 
+  const Elf_Shdr *getDynamicSymbolTableSectionHeader() const {
+    return SymbolTableSections[0];
+  }
+
   Elf_Dyn_iterator begin_dynamic_table() const;
   Elf_Dyn_iterator end_dynamic_table() const;