OS X x86_64 fix from Barney Stratford
authorIan Lynagh <igloo@earth.li>
Sat, 29 May 2010 12:24:40 +0000 (12:24 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 29 May 2010 12:24:40 +0000 (12:24 +0000)
rts/Linker.c

index 9833b31..8a1bdc1 100644 (file)
@@ -4212,6 +4212,9 @@ static int relocateSection(
                 thing += value;
                 break;
             case X86_64_RELOC_SIGNED:
+            case X86_64_RELOC_SIGNED_1:
+            case X86_64_RELOC_SIGNED_2:
+            case X86_64_RELOC_SIGNED_4:
                 ASSERT(reloc->r_pcrel);
                 thing += value - baseValue;
                 break;