patch applied (ghc-7.0/ghc): Fix #4867 (updated; corrects address calculation)

Ian Lynagh igloo at earth.li
Sat Feb 19 16:37:21 CET 2011


Mon Feb 14 07:09:24 PST 2011  gwright at antiope.com
  * Fix #4867 (updated; corrects address calculation)
  
  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.
  

    M ./rts/Linker.c -1 +6

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc-7.0/ghc;a=darcs_commitdiff;h=20110214150924-870a6-ac26c019b73f91f59706c7315a1660fada25d9c5.gz



More information about the Cvs-ghc mailing list