Fix a crash bug in --start-lib.
authorRui Ueyama <ruiu@google.com>
Fri, 8 Apr 2016 20:49:31 +0000 (20:49 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 8 Apr 2016 20:49:31 +0000 (20:49 +0000)
commit1f492893ac015ed6aae8427a6de4f30dd9d2feb8
tree4b3f562b8773bb0b42762022aa0a572bd17f64a4
parente25b65bdb77d89c6dc26bf217c2673e43bdf8ab2
Fix a crash bug in --start-lib.

Previously, Lazy symbols were created for undefined symbols even though
such symbols cannot be resolved by loading object files. This patch
fixes that bug.

llvm-svn: 265847
lld/ELF/InputFiles.cpp
lld/test/ELF/Inputs/start-lib1.s [new file with mode: 0644]
lld/test/ELF/Inputs/start-lib2.s [new file with mode: 0644]
lld/test/ELF/start-lib.s