]> git.saurik.com Git - apple/ld64.git/commitdiff
ld64-302.3.1.tar.gz developer-tools-91 v302.3.1
authorApple <opensource@apple.com>
Tue, 18 Sep 2018 21:32:46 +0000 (21:32 +0000)
committerApple <opensource@apple.com>
Tue, 18 Sep 2018 21:32:46 +0000 (21:32 +0000)
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;