Mercurial > hg > CbC > CbC_llvm
diff lld/ELF/AArch64ErrataFix.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 0572611fdcc8 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/lld/ELF/AArch64ErrataFix.cpp Mon May 25 11:55:54 2020 +0900 +++ b/lld/ELF/AArch64ErrataFix.cpp Tue Jun 08 06:07:14 2021 +0900 @@ -413,9 +413,7 @@ write32le(buf, read32le(patchee->data().begin() + patcheeOffset)); // Apply any relocation transferred from the original patchee section. - // For a SyntheticSection Buf already has outSecOff added, but relocateAlloc - // also adds outSecOff so we need to subtract to avoid double counting. - this->relocateAlloc(buf - outSecOff, buf - outSecOff + getSize()); + relocateAlloc(buf, buf + getSize()); // Return address is the next instruction after the one we have just copied. uint64_t s = getLDSTAddr() + 4;