5cc7cb
diff -Nuard ghc-7.0.1.orig/compiler/main/DriverPipeline.hs ghc-7.0.1/compiler/main/DriverPipeline.hs
5cc7cb
--- ghc-7.0.1.orig/compiler/main/DriverPipeline.hs	2010-11-12 19:10:03.000000000 +0100
5cc7cb
+++ ghc-7.0.1/compiler/main/DriverPipeline.hs	2011-02-22 11:08:26.079686994 +0100
5cc7cb
@@ -1211,6 +1211,9 @@
5cc7cb
         let ld_r args = SysTools.runLink dflags ([
5cc7cb
                             SysTools.Option "-nostdlib",
5cc7cb
                             SysTools.Option "-nodefaultlibs",
5cc7cb
+#ifdef sparc_TARGET_ARCH
5cc7cb
+                            SysTools.Option "-Wl,--no-relax",
5cc7cb
+#endif
5cc7cb
                             SysTools.Option "-Wl,-r",
5cc7cb
                             SysTools.Option ld_x_flag,
5cc7cb
                             SysTools.Option "-o",