1. 04 Sep, 2013 1 commit
  2. 28 Aug, 2013 1 commit
  3. 17 Jun, 2013 1 commit
    • thoughtpolice's avatar
      Detect linker information at runtime. Fixes Trac #6063 · 71a194d8
      thoughtpolice authored
      Previously, we did ./configure time checks to see if 'GNU ld' supported
      certain options. If it does, we bake those options into the link step.
      See Trac #5240.
      
      Unfortunately, the linker we use at runtime can change for several
      reasons. One is that the user specifies -pgml 'foo'. The other is if
      /usr/bin/ld or whatnot changes from when GHC was built.  Those options
      mentioned earlier are specific to GNU ld, but many systems support GNU
      gold too. This is Trac #6063.
      
      So we need to check at runtime what linker we're using. This is actually
      a little bit complicated because we normally use the C compiler as our
      linker. Windows and OS X are also special here.
      
      Finally, this patch also unconditionally gives '--hash-size=31' and
      '--reduce-memory-overheads' to the system linker if it's GNU ld. These
      options have been supported for 8+ years from what I can see, and there
      are probably a lot of other reasons why GHC would not work with such an
      ancient binutils, all things considered.
      
      See Note [Run-time linker info] in SysTools for details. There are
      plenty of comments as well in the surrounding code.
      Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
      71a194d8
  4. 21 May, 2013 1 commit
  5. 15 May, 2013 1 commit
  6. 18 Mar, 2013 1 commit
  7. 25 Feb, 2013 1 commit
    • Gabor Greif's avatar
      Split SettingsCCompilerFlags into non-link and link portions · 890f4657
      Gabor Greif authored
      This fixes certain older GCCs which do not accept link options when assembling or compiling:
      
        ppc_85xx-gcc: --hash-size=31: linker input file unused because linking not done
        ppc_85xx-gcc: --reduce-memory-overheads: linker input file unused because linking not done
      
      and diagnose this to stderr.
      890f4657
  8. 30 Jan, 2013 2 commits
  9. 23 Jan, 2013 1 commit
  10. 29 Nov, 2012 1 commit
  11. 16 Oct, 2012 1 commit
    • ian@well-typed.com's avatar
      Some alpha renaming · cd33eefd
      ian@well-typed.com authored
      Mostly d -> g (matching DynFlag -> GeneralFlag).
      Also renamed if* to when*, matching the Haskell if/when names
      cd33eefd
  12. 13 Oct, 2012 1 commit
  13. 13 Sep, 2012 1 commit
  14. 07 Aug, 2012 1 commit
  15. 06 Aug, 2012 1 commit
  16. 05 Aug, 2012 2 commits
  17. 20 Jul, 2012 1 commit
  18. 16 Jul, 2012 2 commits
  19. 25 Jun, 2012 1 commit
  20. 11 Jun, 2012 1 commit
    • Ian Lynagh's avatar
      Pass DynFlags to the LogAction · 5716a2f8
      Ian Lynagh authored
      A side-effect is that we can no longer use the LogAction in
      defaultErrorHandler, as we don't have DynFlags at that point.
      But all that defaultErrorHandler did is to print Strings as
      SevFatal, so now it takes a 'FatalMessager' instead.
      5716a2f8
  21. 16 May, 2012 1 commit
  22. 24 Feb, 2012 1 commit
  23. 10 Jan, 2012 1 commit
  24. 04 Jan, 2012 1 commit
  25. 08 Dec, 2011 1 commit
  26. 24 Nov, 2011 1 commit
  27. 21 Nov, 2011 1 commit
  28. 19 Oct, 2011 3 commits
  29. 06 Aug, 2011 1 commit
  30. 03 Aug, 2011 1 commit
    • Simon Marlow's avatar
      Fix #5289 (loading libstdc++.so in GHCi), and also fix some other · 9babbc8d
      Simon Marlow authored
      linking scenarios.  We weren't searching for .a archives to satisfy
      -lfoo options on the GHCi command line, for example.
      
      I've tidied up the code in this module so that dealing with -l options
      on the command line is consistent with the handling of extra-libraries
      for packages.
      
      While I was here I moved some stuff out of Linker.hs that didn't seem
      to belong here: dataConInfoPtrToName (now in new module DebuggerUtils)
      and lessUnsafeCoerce (now in DynamicLoading, next to its only use)
      9babbc8d
  31. 03 Jul, 2011 1 commit
  32. 29 Jun, 2011 1 commit
  33. 22 Jun, 2011 2 commits
  34. 31 May, 2011 1 commit