Do not consider Shared symbols as defined symbols.
authorRui Ueyama <ruiu@google.com>
Mon, 6 Nov 2017 04:13:24 +0000 (04:13 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 6 Nov 2017 04:13:24 +0000 (04:13 +0000)
commit32665f702ec00d2e4953bf97ea421fbac17fc1af
treeeaab1ce0f20e59878ac0176ba3ba919cd1caa5c9
parenteff606cc0ea6f1fcc2d6a652fd206a90830bf1ef
Do not consider Shared symbols as defined symbols.

I don't remember why I made shared symbols one type of defined symbols.
Shared symbols aren't undefined, so it could be considered defined, but
categorizing three symbols as:

 - defined
   - really defined
   - shared
 - undefined

is not as intuitive as

 - defined
 - shared
 - undefined

to me. So, in this patch, I made a change to stop handling shared
symbols as defined symbols.

Surprisingly, I didn't have to update any tests for this change.

Differential Revision: https://reviews.llvm.org/D39394

llvm-svn: 317446
lld/ELF/Symbols.h