From 1f917f69ff07f09b6dbb670971f57f8efe718b84 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 14 Jul 2022 20:50:02 +0200 Subject: Vendor import of llvm-project main llvmorg-15-init-16436-g18a6ab5b8d1f. --- lld/ELF/Relocations.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lld/ELF/Relocations.cpp') diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 64381ae75414..e54e1ebd41bb 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -958,8 +958,8 @@ bool RelocationScanner::isStaticLinkTimeConstant(RelExpr e, RelType type, const Symbol &sym, uint64_t relOff) const { // These expressions always compute a constant - if (oneof(e)) @@ -2118,7 +2118,9 @@ bool ThunkCreator::normalizeExistingThunk(Relocation &rel, uint64_t src) { // made no changes. If the target requires range extension thunks, currently // ARM, then any future change in offset between caller and callee risks a // relocation out of range error. -bool ThunkCreator::createThunks(ArrayRef outputSections) { +bool ThunkCreator::createThunks(uint32_t pass, + ArrayRef outputSections) { + this->pass = pass; bool addressesChanged = false; if (pass == 0 && target->getThunkSectionSpacing()) @@ -2180,7 +2182,6 @@ bool ThunkCreator::createThunks(ArrayRef outputSections) { // Merge all created synthetic ThunkSections back into OutputSection mergeThunks(outputSections); - ++pass; return addressesChanged; } -- cgit v1.3