FIX validate for PPC Mac OS X - Linker.c
authorThorkil Naur <naur@post11.tele.dk>
Fri, 5 Oct 2007 14:49:08 +0000 (14:49 +0000)
committerThorkil Naur <naur@post11.tele.dk>
Fri, 5 Oct 2007 14:49:08 +0000 (14:49 +0000)
rts/Linker.c

index 913afe3..496922a 100644 (file)
@@ -4249,7 +4249,7 @@ static int relocateSection(
 #ifdef powerpc_HOST_ARCH
                             // In the .o file, this should be a relative jump to NULL
                             // and we'll change it to a relative jump to the symbol
-                        ASSERT(-word == reloc->r_address);
+                        ASSERT(word + reloc->r_address == 0);
                         jumpIsland = (unsigned long)
                                         &makeSymbolExtra(oc,
                                                          reloc->r_symbolnum,