diff options
author | Rui Ueyama <ruiu@google.com> | 2014-03-14 05:59:16 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-03-14 05:59:16 +0000 |
commit | aca3c7c6f4f27ac30b1e9e892c0b99311edd04cd (patch) | |
tree | 46043cb09f7b5bca1000704713c9ead24e619e27 /clang/lib/Analysis/CFG.cpp | |
parent | ebffa9b4be04c9fd9f48f2822a6c6a1601b6c4dd (diff) | |
download | bcm5719-llvm-aca3c7c6f4f27ac30b1e9e892c0b99311edd04cd.tar.gz bcm5719-llvm-aca3c7c6f4f27ac30b1e9e892c0b99311edd04cd.zip |
[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
Diffstat (limited to 'clang/lib/Analysis/CFG.cpp')
0 files changed, 0 insertions, 0 deletions