diff options
author | Ian Lynagh <igloo@earth.li> | 2011-10-06 19:55:46 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-10-06 19:55:46 +0100 |
commit | a7be91a914b7f1608d259f9154b35a270674645b (patch) | |
tree | 9f9ab388d7fb278a02239761b85c1fe20a873805 | |
parent | 5ac223a73611763a3b24570120755a1a9742c22f (diff) | |
parent | 20705dff179ed09f37a7db474109cccef6f9afec (diff) | |
download | haskell-a7be91a914b7f1608d259f9154b35a270674645b.tar.gz |
Merge branch 'master' of mac:ghc/git/val32/.
-rw-r--r-- | compiler/main/DriverPipeline.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index 0e87ec83d7..4806a1d004 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1688,6 +1688,17 @@ linkBinary dflags o_files dep_packages = do then ["-Wl,-no_compact_unwind"] else []) + -- '-Wl,-read_only_relocs,suppress' + -- ld gives loads of warnings like: + -- ld: warning: text reloc in _base_GHCziArr_unsafeArray_info to _base_GHCziArr_unsafeArray_closure + -- when linking any program. We're not sure + -- whether this is something we ought to fix, but + -- for now this flags silences them. + ++ (if platformOS (targetPlatform dflags) == OSDarwin && + platformArch (targetPlatform dflags) == ArchX86 + then ["-Wl,-read_only_relocs,suppress"] + else []) + ++ o_files ++ extra_ld_inputs ++ lib_path_opts |