Object: BSS/virtual sections don't have contents
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 26 Sep 2014 22:32:16 +0000 (22:32 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 26 Sep 2014 22:32:16 +0000 (22:32 +0000)
commit01ea611601c7dc2e510d53b14848f4843a67bc22
tree421fb12a93cab4993b31fb4181c2f316820d9948
parenta51dbbd3943eb2f78d4013aa1c13e6cc13a8c71e
Object: BSS/virtual sections don't have contents

Users of getSectionContents shouldn't try to pass in BSS or virtual
sections.  In all instances, this is a bug in the code calling this
routine.

N.B. Some COFF implementations (like CL) will mark their BSS sections as
taking space on disk.  This would confuse COFFObjectFile into thinking
the section is larger than the file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218549 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARFContext.cpp
lib/Object/COFFObjectFile.cpp
test/MC/PowerPC/lcomm.s
tools/llvm-readobj/COFFDumper.cpp
tools/llvm-readobj/ELFDumper.cpp
tools/llvm-readobj/MachODumper.cpp