aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Object/ELF.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2013-02-07 23:37:58 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2013-02-07 23:37:58 +0000
commitd1824f2f46adbf4d64acc647aaff9956bef88d54 (patch)
tree369698b7176e69ce881795bad2676a526e2adfcd /include/llvm/Object/ELF.h
parent2e0742f76c6081b24eb64b3967c3d7903007dcbd (diff)
[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
Diffstat (limited to 'include/llvm/Object/ELF.h')
-rw-r--r--include/llvm/Object/ELF.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h
index bcd5b11f20..00b8af949f 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;