[Core] Do not reclaim absolute atoms in resolver.
authorDavide Italiano <davide@freebsd.org>
Thu, 26 Feb 2015 05:39:57 +0000 (05:39 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 26 Feb 2015 05:39:57 +0000 (05:39 +0000)
commita82ae9146eab21a9c4017a9d9ad7ba6e39dbb481
tree4cfd845a44355a99587a91b4bd2c7ff0c920b549
parented6a509bb5e25b93bfa6705afcdda8cbbc5350b0
[Core] Do not reclaim absolute atoms in resolver.

This fixes a linker crash (found out while testing --gc-sections,
testcase provided by Rafael Avila de Espindola).
While this behaviour was found while testing ELF, it' not necessarily
ELF specific and this change is (apparently) harmless on all the
other drivers.

Differential Revision:  D7823
Reviewed by:    ruiu

llvm-svn: 230614
lld/lib/Core/Resolver.cpp
lld/test/core/absolute-basic.objtxt