Fix #4867, ghci displays negative floats incorrectly
authorgwright@antiope.com <unknown>
Wed, 9 Feb 2011 22:24:23 +0000 (22:24 +0000)
committergwright@antiope.com <unknown>
Wed, 9 Feb 2011 22:24:23 +0000 (22:24 +0000)
commita914a2249f13e36695060084465e97c2174ab71d
treee1a9a5fce34c7b7b828613224f0216dcd9762888
parent72c4f62494fa63aa6db846ff5e02828da6a9278b
Fix #4867, ghci displays negative floats incorrectly

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.
rts/Linker.c