Don't produce an error for undefined entry symbol.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 20 Sep 2016 17:14:16 +0000 (17:14 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 20 Sep 2016 17:14:16 +0000 (17:14 +0000)
commitdb62cbb97f144a1f884621bf5cd6e361f17ff8f2
tree18aa3045fdac013baadf61c722e89ad46ff91c02
parent6fe6eae7f761fa95b723f2762a11431088bbc7e5
Don't produce an error for undefined entry symbol.

This is particularly important when the symbol comes from a linker
script. It is common to use the same linker script for shared
libraries and executables. Without this we would always fail to link
shared libraries with -z,defs and a linker script with an ENTRY
directive.

llvm-svn: 281989
lld/ELF/Driver.cpp
lld/test/ELF/linkerscript/linkerscript.s