Modified the linker so that it always links in an object from an archive
authorJohn Criswell <criswell@uiuc.edu>
Tue, 23 Dec 2003 17:37:06 +0000 (17:37 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Tue, 23 Dec 2003 17:37:06 +0000 (17:37 +0000)
commit1715ce00e424afcc03eea25edec441ae14392304
tree129a77f00d7b533fd724c14e44a6b798fc4e3df1
parentac1ccae982d9e718ef1234baa4f0255d5d3a64f3
Modified the linker so that it always links in an object from an archive
that defines the symbol "main."  This is a hack that ensures that programs
that place their main function in a library and then link it in
(i.e. Apache 2.x) get their main function linked in.

There is probably a more correct way to do this, but this works for now.

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