[RuntimeDyld] Don't try to get the contents of sections that don't have any
authorLang Hames <lhames@gmail.com>
Thu, 15 Oct 2015 06:41:45 +0000 (06:41 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 15 Oct 2015 06:41:45 +0000 (06:41 +0000)
commit9816f9eac902b84ec044bc11f6243d9e9400f3ef
tree8cdb25148405cbd6a262955f75f780f8abddcc72
parentc770c8d638a69cd3cd527c54f08008f45bbab2c5
[RuntimeDyld] Don't try to get the contents of sections that don't have any
(e.g. bss sections).

MachO and ELF have been silently letting this pass, but COFFObjectFile contains
an assertion to catch this kind of (ab)use of the getSectionContents, and this
was causing the JIT to crash on COFF objects with BSS sections. This patch
should fix that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250371 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
test/ExecutionEngine/RuntimeDyld/X86/COFF_x86_64 [deleted file]
test/ExecutionEngine/RuntimeDyld/X86/COFF_x86_64.s [new file with mode: 0644]