summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-12-02 15:31:11 -0800
committerFangrui Song <maskray@google.com>2019-12-05 09:33:30 -0800
commit944f109ad778d53827b2473c8465985733c931b4 (patch)
tree600a7e5f027df20eed68d148457bc1312b190d3a
parent8994d632c8d31d527490e8693b0881d9278464e6 (diff)
downloadbcm5719-llvm-944f109ad778d53827b2473c8465985733c931b4.tar.gz
bcm5719-llvm-944f109ad778d53827b2473c8465985733c931b4.zip
[ELF][PPC64] Don't copy ppc64BranchltIndex in replaceWithDefined
replaceWithDefined is used by canonical PLT and copy relocations, which imply that the symbol is preemptable. ppc64BranchltIndex is only used by non-preemptable cases, and it can only be the default value in replaceWithDefined.
-rw-r--r--lld/ELF/Relocations.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index ea30662d382..2c020be063e 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -509,7 +509,6 @@ static void replaceWithDefined(Symbol &sym, SectionBase *sec, uint64_t value,
sym.pltIndex = old.pltIndex;
sym.gotIndex = old.gotIndex;
sym.verdefIndex = old.verdefIndex;
- sym.ppc64BranchltIndex = old.ppc64BranchltIndex;
sym.exportDynamic = true;
sym.isUsedInRegularObj = true;
}
OpenPOWER on IntegriCloud