diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-08-22 21:54:58 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-08-22 21:54:58 +0000 |
| commit | e158f7c329b599dfb0b481f8ce25d520e940a3d7 (patch) | |
| tree | f001938ef96b079bc6b20a311ce3683880bb8380 /lld/ELF/SymbolTable.cpp | |
| parent | c5e7cee0a2d35202f2dbc24aedd4695c6ad9a3a8 (diff) | |
| download | bcm5719-llvm-e158f7c329b599dfb0b481f8ce25d520e940a3d7.tar.gz bcm5719-llvm-e158f7c329b599dfb0b481f8ce25d520e940a3d7.zip | |
Revert r311468: If --dynamic-list is given, only those symbols are preemptible
This reverts commit r311468 because it broke some CFI bots.
llvm-svn: 311497
Diffstat (limited to 'lld/ELF/SymbolTable.cpp')
| -rw-r--r-- | lld/ELF/SymbolTable.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp index 9962b2554e0..ec8ae5d75bb 100644 --- a/lld/ELF/SymbolTable.cpp +++ b/lld/ELF/SymbolTable.cpp @@ -680,24 +680,6 @@ void SymbolTable::handleAnonymousVersion() { assignWildcardVersion(Ver, VER_NDX_LOCAL); } -// Handles -dynamic-list. -void SymbolTable::handleDynamicList() { - for (SymbolVersion &Ver : Config->DynamicList) { - std::vector<SymbolBody *> Syms; - if (Ver.HasWildcard) - Syms = findByVersion(Ver); - else - Syms = findAllByVersion(Ver); - - for (SymbolBody *B : Syms) { - if (!Config->Shared) - B->symbol()->VersionId = VER_NDX_GLOBAL; - else if (B->symbol()->includeInDynsym()) - B->IsPreemptible = true; - } - } -} - // Set symbol versions to symbols. This function handles patterns // containing no wildcard characters. void SymbolTable::assignExactVersion(SymbolVersion Ver, uint16_t VersionId, @@ -747,7 +729,6 @@ void SymbolTable::assignWildcardVersion(SymbolVersion Ver, uint16_t VersionId) { void SymbolTable::scanVersionScript() { // Handle edge cases first. handleAnonymousVersion(); - handleDynamicList(); // Now we have version definitions, so we need to set version ids to symbols. // Each version definition has a glob pattern, and all symbols that match |

