Do not add a dummy entry to SharedFile::Verdefs. NFC.
authorRui Ueyama <ruiu@google.com>
Sat, 24 Mar 2018 00:25:24 +0000 (00:25 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 24 Mar 2018 00:25:24 +0000 (00:25 +0000)
commitd37c33aff2c651ba722f69a8bebe66ff8025013a
tree116c683f143d869d6b2c55aac4e548b4af9f829d
parentfe6e6d93d9bb4c31283965bb12560b756910303d
Do not add a dummy entry to SharedFile::Verdefs. NFC.

Previously, we used 0 as an alias for VER_NDX_GLOBAL and had a dummy
entry in SharedFile::Verdefs so that the access to the array is within
its boundary. But that's not straightforwad. We can just stop doing both.

llvm-svn: 328401
lld/ELF/InputFiles.cpp
lld/ELF/SyntheticSections.cpp