From d04bc35852ac9c53a0c57730ebc5a73b21279ac1 Mon Sep 17 00:00:00 2001 From: Nick Kledzik Date: Sat, 30 Aug 2014 00:20:14 +0000 Subject: Object/llvm-objdump: allow dumping of mach-o exports trie MachOObjectFile in lib/Object currently has no support for parsing the rebase, binding, and export information from the LC_DYLD_INFO load command in final linked mach-o images. This patch adds support for parsing the exports trie data structure. It also adds an option to llvm-objdump to dump that export info. I did the exports parsing first because it is the hardest. The information is encoded in a trie structure, but the standard ObjectFile way to inspect content is through iterators. So I needed to make an iterator that would do a non-recursive walk through the trie and maintain the concatenation of edges needed for the current string prefix. I plan to add similar support in MachOObjectFile and llvm-objdump to parse/display the rebasing and binding info too. llvm-svn: 216808 --- .../tools/llvm-objdump/Inputs/exports-trie.macho-x86_64 | Bin 0 -> 8752 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100755 llvm/test/tools/llvm-objdump/Inputs/exports-trie.macho-x86_64 (limited to 'llvm/test/tools/llvm-objdump/Inputs') diff --git a/llvm/test/tools/llvm-objdump/Inputs/exports-trie.macho-x86_64 b/llvm/test/tools/llvm-objdump/Inputs/exports-trie.macho-x86_64 new file mode 100755 index 00000000000..5d7506078a7 Binary files /dev/null and b/llvm/test/tools/llvm-objdump/Inputs/exports-trie.macho-x86_64 differ -- cgit v1.2.3