Skip to content

Commit

Permalink
Merge branch 'master' of mac:ghc/git/val32/.
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Oct 6, 2011
2 parents 5ac223a + 20705df commit a7be91a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions compiler/main/DriverPipeline.hs
Expand Up @@ -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
Expand Down

0 comments on commit a7be91a

Please sign in to comment.