1. 17 Jun, 2013 4 commits
    • thoughtpolice's avatar
      Work-around clang weirdness by adding a newline. · 5dc98a0d
      thoughtpolice authored
      
      
      I really wish this were a joke, but alas...
      
      This gets me a working stage1 compiler on Linux with Clang with no
      modifications. Unfortunately it won't get much farther than that for
      various other reasons.
      Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
      5dc98a0d
    • thoughtpolice's avatar
      8f2f7a09
    • thoughtpolice's avatar
      Release note blurb for Linker fixes. · 6bd61397
      thoughtpolice authored
      
      Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
      6bd61397
    • 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
  2. 15 Jun, 2013 8 commits
  3. 14 Jun, 2013 2 commits
  4. 13 Jun, 2013 2 commits
  5. 12 Jun, 2013 4 commits
  6. 11 Jun, 2013 6 commits
  7. 10 Jun, 2013 4 commits
  8. 09 Jun, 2013 10 commits