[ELF] SharedFile::parse: make versym handling more precise
authorFangrui Song <i@maskray.me>
Sun, 4 Sep 2022 23:21:19 +0000 (16:21 -0700)
committerFangrui Song <i@maskray.me>
Sun, 4 Sep 2022 23:21:19 +0000 (16:21 -0700)
commit498151d94461be5516cc9f269d691c894af2452f
tree7c33b61517b598b40f1f17425816942c7386c389
parent634a722dd926b570ac926a6f7f744a26584721a9
[ELF] SharedFile::parse: make versym handling more precise

VER_NDX_LOCAL/VER_NDX_GLOBAL cannot be hidden, so we can compare them with
versyms[i] instead of versyms[i] & ~VERSYM_HIDDEN. In the presence of an error,
we can suppress addSymbol.
lld/ELF/InputFiles.cpp