hanchenye-llvm-project/lld/unittests
Rui Ueyama aca3c7c6f4 [PECOFF] Fix link order.
LLD fails to link symbol "_main" if the symbol is in a library file and
the library file is given as a bare argument (i.e. not with /defaultlib
option). It's because library files given as bare arguments are processed
before other libraries given with /defaultlib, so when Linker finds msvcrtd
needs a definition for "_main", the file providing the main function has
already been processed and skipped. Linker don't revisit libraries if it's
not given with /defaultlib.

To fix it this patch change the way of command line handling; files end with
".lib" are treated as if they are given with /defaultlib. I don't believe
it's 100% correct behavior but it's better than before.

llvm-svn: 203892
2014-03-14 05:59:16 +00:00
..
CoreTests Rename TargetInfo -> LinkingContext. 2013-08-06 22:31:59 +00:00
DriverTests [PECOFF] Fix link order. 2014-03-14 05:59:16 +00:00
MachOTests Replace OwningPtr with std::unique_ptr. 2014-03-13 16:20:38 +00:00
CMakeLists.txt Supoort mach-o encoded in yaml. 2013-10-08 00:43:34 +00:00