diff --git a/macho-go/pkg/ios/macho/dyld_info.go b/macho-go/pkg/ios/macho/dyld_info.go index ab9400f..bf85924 100644 --- a/macho-go/pkg/ios/macho/dyld_info.go +++ b/macho-go/pkg/ios/macho/dyld_info.go @@ -151,11 +151,11 @@ func (mc *MachoContext) CollectBindSymbolsModern() []*ImportSymbol { fmt.Printf("// 0x%x rebase=%d target=0x%x high8=0x%x\n", address, bind, ret1, ret2) } - address += 8 if int(next) == 0 { break } // because the pointer move up 8 bytes already so we minus 8 + address += int64(next * 4) mc.file.Seek(int64(next * 4) - 8, io.SeekCurrent) } mc.file.Seek(0, io.SeekStart)