diff options
author | Eric Christopher <echristo@gmail.com> | 2013-04-03 18:31:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-04-03 18:31:23 +0000 |
commit | 99ff2ba240979249b61514c1536bbe23be84ecc7 (patch) | |
tree | 1a6798bc611958de477dd4075da31177118653df | |
parent | 19d7322170d6d07880055fe1152d6fe17125fb7e (diff) |
Don't disassemble symbols with an unknown address or size.
Patch by Nico Rieck!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178678 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/llvm-objdump/llvm-objdump.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvm-objdump/llvm-objdump.cpp b/tools/llvm-objdump/llvm-objdump.cpp index 322bd21b28..7832cf0dff 100644 --- a/tools/llvm-objdump/llvm-objdump.cpp +++ b/tools/llvm-objdump/llvm-objdump.cpp @@ -228,6 +228,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) { if (!error(i->containsSymbol(*si, contains)) && contains) { uint64_t Address; if (error(si->getAddress(Address))) break; + if (Address == UnknownAddressOrSize) continue; Address -= SectionAddr; StringRef Name; |