Modified the logic so that library objects with main() are only linked in
authorJohn Criswell <criswell@uiuc.edu>
Tue, 23 Dec 2003 20:27:14 +0000 (20:27 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Tue, 23 Dec 2003 20:27:14 +0000 (20:27 +0000)
commit368751f2b721c09f827d73b929ab87969514cc07
tree00f01e13afa3dd7e8bad17f18cc98b6001fee072
parenta989b234bdc848ecc220e2c932b7525b579bdfe2
Modified the logic so that library objects with main() are only linked in
if the program currently has main undefined.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10597 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkArchives.cpp
tools/gccld/Linker.cpp