]> git.saurik.com Git - apple/ld64.git/blobdiff - src/other/rebase.cpp
ld64-128.2.tar.gz
[apple/ld64.git] / src / other / rebase.cpp
index d69fc3ca52ca06594972e751944ad3be67d8e102..2255789436f2303f6ea371a1a8fe0941219a6228 100644 (file)
@@ -650,13 +650,7 @@ void Rebaser<ppc>::doLocalRelocation(const macho_relocation_info<P>* reloc)
                }
        }
        else {
-               macho_scattered_relocation_info<P>* sreloc = (macho_scattered_relocation_info<P>*)reloc;
-               if ( sreloc->r_type() == PPC_RELOC_PB_LA_PTR ) {
-                       sreloc->set_r_value( sreloc->r_value() + fSlide );
-               }
-               else {
-                       throw "cannot rebase final linked image with scattered relocations";
-               }
+               throw "cannot rebase final linked image with scattered relocations";
        }
 }