mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -322,13 +322,13 @@ namespace llvm {
|
||||
};
|
||||
|
||||
enum {
|
||||
EXPORT_SYMBOL_FLAGS_KIND_MASK = 0x03u,
|
||||
EXPORT_SYMBOL_FLAGS_WEAK_DEFINITION = 0x04u,
|
||||
EXPORT_SYMBOL_FLAGS_REEXPORT = 0x08u,
|
||||
EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER = 0x10u
|
||||
};
|
||||
|
||||
enum ExportSymbolKind {
|
||||
EXPORT_SYMBOL_FLAGS_KIND_MASK = 0x03u,
|
||||
EXPORT_SYMBOL_FLAGS_KIND_REGULAR = 0x00u,
|
||||
EXPORT_SYMBOL_FLAGS_KIND_THREAD_LOCAL = 0x01u,
|
||||
EXPORT_SYMBOL_FLAGS_KIND_ABSOLUTE = 0x02u
|
||||
|
Reference in New Issue
Block a user