Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' of mac:ghc/git/val32/.

  • Loading branch information...
commit a7be91a914b7f1608d259f9154b35a270674645b 2 parents 5ac223a + 20705df
igfoo authored October 06, 2011

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. 11  compiler/main/DriverPipeline.hs
11  compiler/main/DriverPipeline.hs
@@ -1688,6 +1688,17 @@ linkBinary dflags o_files dep_packages = do
1688 1688
                           then ["-Wl,-no_compact_unwind"]
1689 1689
                           else [])
1690 1690
 
  1691
+                      -- '-Wl,-read_only_relocs,suppress'
  1692
+                      -- ld gives loads of warnings like:
  1693
+                      --     ld: warning: text reloc in _base_GHCziArr_unsafeArray_info to _base_GHCziArr_unsafeArray_closure
  1694
+                      -- when linking any program. We're not sure
  1695
+                      -- whether this is something we ought to fix, but
  1696
+                      -- for now this flags silences them.
  1697
+                      ++ (if platformOS   (targetPlatform dflags) == OSDarwin   &&
  1698
+                             platformArch (targetPlatform dflags) == ArchX86
  1699
+                          then ["-Wl,-read_only_relocs,suppress"]
  1700
+                          else [])
  1701
+
1691 1702
                       ++ o_files
1692 1703
                       ++ extra_ld_inputs
1693 1704
                       ++ lib_path_opts

0 notes on commit a7be91a

Please sign in to comment.
Something went wrong with that request. Please try again.