llvm-project/lld/lib/Driver
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
..
CMakeLists.txt [PECOFF] Support module-definition file. 2014-01-10 10:19:47 +00:00
CoreDriver.cpp Fix copy/paste error. 2013-12-24 20:43:54 +00:00
CoreOptions.td This is my Driver refactoring patch. 2013-04-04 18:59:24 +00:00
DarwinLdDriver.cpp Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
DarwinLdOptions.td Support darwin linker options: 2013-09-10 23:55:14 +00:00
Driver.cpp Make SimpleFileNode inherit from FileNode. 2013-12-19 23:39:02 +00:00
GnuLdDriver.cpp [ELF] Add Target specific Readers. 2014-01-27 01:02:03 +00:00
GnuLdInputGraph.cpp Use getError instead of the error_code operator. 2014-01-08 22:00:09 +00:00
GnuLdOptions.td Fix trailing whitespace. 2014-01-27 03:09:26 +00:00
TODO.rst [docs] Add list of missing GNU ld command line options. 2014-03-10 21:25:43 +00:00
UniversalDriver.cpp [Driver] Change UniversalDriver to use TD file. 2013-10-24 04:23:02 +00:00
UniversalDriverOptions.td [Driver] Change UniversalDriver to use TD file. 2013-10-24 04:23:02 +00:00
WinLinkDriver.cpp [PECOFF] Fix link order. 2014-03-14 05:59:16 +00:00
WinLinkInputGraph.cpp Use getError instead of the error_code operator. 2014-01-08 22:00:09 +00:00
WinLinkModuleDef.cpp [C++11] Work around an incompatibility between llvm::tie and std::tie. 2014-03-02 13:45:18 +00:00
WinLinkOptions.td [PECOFF] Driver support for /SAFESEH option. 2014-02-21 22:30:43 +00:00