summaryrefslogtreecommitdiffstats
path: root/lld/ELF/SymbolTable.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-07-18 18:24:46 +0000
committerRui Ueyama <ruiu@google.com>2018-07-18 18:24:46 +0000
commitf43fba739cd2d07874a02c60c26d455e1861a874 (patch)
treed41295dec622ed9eff05b1a4787b7a21e4d7a6c9 /lld/ELF/SymbolTable.cpp
parentf3bc17cb5721f026bade17b57f38ce8f923ff763 (diff)
downloadbcm5719-llvm-f43fba739cd2d07874a02c60c26d455e1861a874.tar.gz
bcm5719-llvm-f43fba739cd2d07874a02c60c26d455e1861a874.zip
Revert r336609: Fix direct calls to __wrap_sym when it is relocated.
This reverts commit r336609 as it doesn't seem to work with AArch64 thunk creation when used with ASan. llvm-svn: 337413
Diffstat (limited to 'lld/ELF/SymbolTable.cpp')
-rw-r--r--lld/ELF/SymbolTable.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp
index c52ec8fa925..1f5a84ec2c7 100644
--- a/lld/ELF/SymbolTable.cpp
+++ b/lld/ELF/SymbolTable.cpp
@@ -212,17 +212,6 @@ void SymbolTable::applySymbolWrap() {
}
}
-// Apply changes caused by relocations to wrapped symbols
-// This is needed for direct calls to __wrap_sym
-void SymbolTable::applySymbolWrapReloc() {
- for (WrappedSymbol &W : WrappedSymbols) {
- memcpy(W.Wrap, W.Sym, sizeof(SymbolUnion));
-
- // Keep this so that this copy of the symbol remains dropped
- W.Wrap->IsUsedInRegularObj = false;
- }
-}
-
static uint8_t getMinVisibility(uint8_t VA, uint8_t VB) {
if (VA == STV_DEFAULT)
return VB;
OpenPOWER on IntegriCloud