[PECOFF] Add the entry point file at the right place.
authorRui Ueyama <ruiu@google.com>
Wed, 23 Jul 2014 21:41:20 +0000 (21:41 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 23 Jul 2014 21:41:20 +0000 (21:41 +0000)
commit7c60a98f16090b942b1e6c9882d32a8141d025e3
treebf095e24a636c4be7e268752b843c3f741ae3141
parentf997c6f90b6a756a12c85c36c4d1e7d9e471393d
[PECOFF] Add the entry point file at the right place.

The entry point file needs to be processed after all other
object files and before all .lib files. It was processed
after .lib files. That caused an issue that the entry point
function was not resolved from the standard library files.

llvm-svn: 213804
lld/include/lld/ReaderWriter/PECOFFLinkingContext.h
lld/lib/Driver/WinLinkDriver.cpp
lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
lld/unittests/DriverTests/WinLinkDriverTest.cpp