[PECOFF] Set DLL bit in PE header if DLL.
authorRui Ueyama <ruiu@google.com>
Thu, 17 Jul 2014 00:22:26 +0000 (00:22 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 17 Jul 2014 00:22:26 +0000 (00:22 +0000)
commit286691ad5e1a8efdd1d98c56dccbacd6cc709b77
treefac1aaf02876d470f31c509db0f9de698546213b
parent033890cd0a9c898f0693a49c953b7f1d639838c4
[PECOFF] Set DLL bit in PE header if DLL.

Windows loader can load a DLL without this bit but it wouldn't
call the initializer function in the DLL if the bit is absent.

llvm-svn: 213216
lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
lld/test/pecoff/dll.test [new file with mode: 0644]