diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index bba6b96d1f7..f14195af0b1 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -1444,8 +1444,7 @@ VersionNeedSection<ELFT>::VersionNeedSection() template <class ELFT> void VersionNeedSection<ELFT>::addSymbol(SharedSymbol<ELFT> *SS) { if (!SS->Verdef) { - // The reserved identifier for a non-versioned global symbol. - SS->VersionId = 1; + SS->VersionId = VER_NDX_GLOBAL; return; } SharedFile<ELFT> *F = SS->File; |