llvm-objdump: Handle BSS sections larger than the object file
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 14 Jul 2014 16:20:14 +0000 (16:20 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 14 Jul 2014 16:20:14 +0000 (16:20 +0000)
commite3aafccae99546644433e50022db364dfa516ae3
tree7d8be6703e76b0052a5c69759eab5b76c7a20b1f
parent9e251d6d41beae57d4f5d6a13f50e3d35b292541
llvm-objdump: Handle BSS sections larger than the object file

The size of the uninitialized sections, like BSS, can exceed the size of
the object file.

Do not attempt to grab the contents of such sections.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212953 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/Inputs/large-bss.obj.coff-i386 [new file with mode: 0644]
test/tools/llvm-objdump/coff-large-bss.test [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp