]> gitweb @ CieloNegro.org - pkgsrc-ghc.git/blobdiff - patches/patch-ag
patch for Linker.c
[pkgsrc-ghc.git] / patches / patch-ag
diff --git a/patches/patch-ag b/patches/patch-ag
new file mode 100644 (file)
index 0000000..f5021b0
--- /dev/null
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- rts/Linker.c.orig  2010-04-20 18:10:07.000000000 +0000
++++ rts/Linker.c
+@@ -4122,7 +4122,8 @@ static int relocateSection(
+                   else if(scat->r_type == PPC_RELOC_SECTDIFF
+                       || scat->r_type == PPC_RELOC_LO16_SECTDIFF
+                       || scat->r_type == PPC_RELOC_HI16_SECTDIFF
+-                      || scat->r_type == PPC_RELOC_HA16_SECTDIFF)
++                      || scat->r_type == PPC_RELOC_HA16_SECTDIFF
++                      || scat->r_type == PPC_RELOC_LOCAL_SECTDIFF)
+ #else
+                     else if(scat->r_type == GENERIC_RELOC_SECTDIFF
+                         || scat->r_type == GENERIC_RELOC_LOCAL_SECTDIFF)