forked from OSchip/llvm-project
[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.
This commit is contained in:
parent
8994d632c8
commit
944f109ad7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue