]> git.saurik.com Git - apple/ld64.git/blobdiff - src/ld/OutputFile.cpp
ld64-302.3.1.tar.gz
[apple/ld64.git] / src / ld / OutputFile.cpp
index 044f850cf7599ef9ebff147e07a4d6ae9192fe67..62e052e450913ece5cf2f2ce62ed94380dacb8a9 100644 (file)
@@ -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;