From d1824f2f46adbf4d64acc647aaff9956bef88d54 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Thu, 7 Feb 2013 23:37:58 +0000 Subject: [PATCH] [Object][ELF] Add a way to get the dynamic symbol table section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174682 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ELF.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index bcd5b11f208..00b8af949f8 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -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;