From c1f6aec514f7e3059b9613d90f479f494f19f7bb Mon Sep 17 00:00:00 2001 From: Apple Date: Tue, 18 Sep 2018 21:32:46 +0000 Subject: [PATCH 1/1] ld64-302.3.1.tar.gz --- src/ld/OutputFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ld/OutputFile.cpp b/src/ld/OutputFile.cpp index 044f850..62e052e 100644 --- a/src/ld/OutputFile.cpp +++ b/src/ld/OutputFile.cpp @@ -1708,7 +1708,7 @@ void OutputFile::applyFixUps(ld::Internal& state, uint64_t mhAddress, const ld:: if ( islandfit->kind == ld::Fixup::kindIslandTarget ) { const ld::Atom* islandTarget = NULL; uint64_t islandTargetAddress = addressOf(state, islandfit, &islandTarget); - delta = islandTargetAddress - (atom->finalAddress() + fit->offsetInAtom + 4); + delta = islandTargetAddress - (atom->finalAddress() + fit->offsetInAtom + 8); if ( checkArmBranch24Displacement(delta) ) { toTarget = islandTarget; accumulator = islandTargetAddress; -- 2.45.2