From: Apple Date: Tue, 18 Sep 2018 21:32:46 +0000 (+0000) Subject: ld64-302.3.1.tar.gz X-Git-Tag: developer-tools-91^0 X-Git-Url: https://git.saurik.com/apple/ld64.git/commitdiff_plain/c1f6aec514f7e3059b9613d90f479f494f19f7bb?ds=inline;hp=bee7e226299dacc6d80d9cf6f1585c3d5d0645e0 ld64-302.3.1.tar.gz --- 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;