1. 08 Apr, 2011 1 commit
  2. 03 Apr, 2011 1 commit
    • Ian Lynagh's avatar
      Take strlen of archive filenames. · be895313
      Ian Lynagh authored
      On OS X at least, the filename size is the size of the filename
      field. The actual filename may be shorter.
      
      Also a number of code style improvements and debug prints.
      
      This is part of the patch from #5062, from Greg Wright.
      be895313
  3. 29 Mar, 2011 1 commit
  4. 14 Feb, 2011 1 commit
    • gwright@antiope.com's avatar
      Fix #4867 (updated; corrects address calculation) · 796a3b36
      gwright@antiope.com authored
      This is a corrected fix for ticket #4867, "ghci displays negative floats
      incorrectly".  The previous patch sometimes gave incorrect offset to values
      in the __const section of the __TEXT segment.  The new patch arranges a zero
      fixup for non-external, not-global offset table signed relocations.  This
      is apparently what is required, though documentation on this point is scarce.
      
      With this change Doubles are negated properly, because the sign bit mask
      is loaded from the correct offset.  This was tested both on HEAD and the 7.0
      branch.
      796a3b36
  5. 09 Feb, 2011 1 commit
    • gwright@antiope.com's avatar
      Fix #4867, ghci displays negative floats incorrectly · a914a224
      gwright@antiope.com authored
      This patch fixes the erroneous relocations that caused
      the bug in ticket #4867.  External addresses and global
      offset table entries were relocated correctly, but all other
      relocations were incorrectly calculated.  This caused, for
      example, bad references to constants stored in the __const
      section of the __TEXT segment.
      
      This bug only affected OS X on 64-bit platforms.
      a914a224
  6. 24 Jan, 2011 1 commit
  7. 18 Jan, 2011 1 commit
  8. 21 Dec, 2010 1 commit
    • Simon Marlow's avatar
      Count allocations more accurately · db0c13a4
      Simon Marlow authored
      The allocation stats (+RTS -s etc.) used to count the slop at the end
      of each nursery block (except the last) as allocated space, now we
      count the allocated words accurately.  This should make allocation
      figures more predictable, too.
      
      This has the side effect of reducing the apparent allocations by a
      small amount (~1%), so remember to take this into account when looking
      at nofib results.
      db0c13a4
  9. 17 Dec, 2010 2 commits
  10. 10 Dec, 2010 1 commit
  11. 08 Dec, 2010 1 commit
  12. 30 Nov, 2010 4 commits
  13. 27 Nov, 2010 4 commits
  14. 29 Oct, 2010 2 commits
  15. 28 Oct, 2010 1 commit
  16. 26 Oct, 2010 1 commit
    • gwright@antiope.com's avatar
      Fix for #4318 (Linker failure on OS X 10.6) · 73dd6e84
      gwright@antiope.com authored
      This patch fixes two bugs in the Mach-O linker and adds debugging statements
      to the same. The bugs:
      
      1. The test for symbol->n_value == 0 is removed and replaced by a test of the
      flag field.  Checking the n_value field was just wrong; the value of a
      symbol should only be examined when allocating space for a common block,
      in which case the n_value field gives the size of the block.  This bug
      led to an infrequently occuring linker crash.
      
      I believe the behavior of the linker now agrees with the intent of the
      sketchy Apple documentation.
      
      2. Jump islands were being filled with garbage instead of the the location
      of the referenced symbol. This caused relocations of type X86_64_RELOC_GOT and
      X86_64_RELOC_GOT_LOAD to eventually lead to crashes.  The fix is simply to
      look up the symbol.
      
      Enough debug statements have been added to follow the operation of the Mach-O
      linker while it loads modules.  They are not yet as informative and well
      organized as for ELF.  Improving the debug statements will require some
      reorganization of the code -- the Mach-O linker seems basically sound, but
      is crying out for some refactoring and commenting.
          
      73dd6e84
  17. 27 Sep, 2010 1 commit
  18. 24 Sep, 2010 1 commit
  19. 21 Sep, 2010 4 commits
  20. 20 Sep, 2010 1 commit
  21. 14 Sep, 2010 1 commit
  22. 13 Sep, 2010 1 commit
  23. 26 Aug, 2010 1 commit
  24. 24 Jul, 2010 1 commit
  25. 05 Aug, 2010 1 commit
  26. 23 Jul, 2010 2 commits
  27. 20 Jul, 2010 1 commit
  28. 13 Jul, 2010 1 commit