summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-05-25 01:59:32 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-05-25 01:59:32 +0000
commite7e467aaa985d345ab6d9c40e7726501b49a6899 (patch)
tree850113a98e50f88e1400fee0899e720d01e2ca4e /llvm/tools/llvm-objdump
parent655a145e83aa678d1e0b492820a55d574be46b19 (diff)
downloadbcm5719-llvm-e7e467aaa985d345ab6d9c40e7726501b49a6899.tar.gz
bcm5719-llvm-e7e467aaa985d345ab6d9c40e7726501b49a6899.zip
llvm-objdump: support dumping AUX records for weak externals
This is a support COFF feature. Ensure that we can display the weak externals auxiliary symbol. It contains useful information (such as the default binding and how to resolve the symbol). llvm-svn: 270648
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r--llvm/tools/llvm-objdump/COFFDump.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/COFFDump.cpp b/llvm/tools/llvm-objdump/COFFDump.cpp
index 6b98b72b5c1..3b72f9bcad7 100644
--- a/llvm/tools/llvm-objdump/COFFDump.cpp
+++ b/llvm/tools/llvm-objdump/COFFDump.cpp
@@ -653,6 +653,12 @@ void llvm::printCOFFSymbolTable(const COFFObjectFile *coff) {
SI = SI + Symbol->getNumberOfAuxSymbols();
break;
+ } else if (Symbol->isWeakExternal()) {
+ const coff_aux_weak_external *awe;
+ error(coff->getAuxSymbol<coff_aux_weak_external>(SI + 1, awe));
+
+ outs() << "AUX " << format("tagndx %d type %d\n", awe->TagIndex,
+ awe->Characteristics);
} else {
outs() << "AUX Unknown\n";
}
OpenPOWER on IntegriCloud