[project @ 2005-04-05 09:38:00 by simonmar]
authorsimonmar <unknown>
Tue, 5 Apr 2005 09:38:01 +0000 (09:38 +0000)
committersimonmar <unknown>
Tue, 5 Apr 2005 09:38:01 +0000 (09:38 +0000)
commit3f4fd743381cce0b111d92246772f0be8938f7a7
tree7f7380b239b041d3210b7091e968dbd6d55c12e9
parente5e1449183fc7e5fcc774612fc3fa0ec0e5b2570
[project @ 2005-04-05 09:38:00 by simonmar]
Main x86_64 hacking: we have a problem on this arch where binutils
can't generate 64-bit relative relocations (R_X86_64_PC64), which many
of our info-table fields are.  So far we've been hacking around it by
putting everything in the text section, but I've decided to adopt
another approach: we'll use explicit 32-bit offset fields on this
platform instead.  This is safe in the default "small" memory model
where all symbols are guaranteed to be in the lower 2Gb of the address
space.

NCG changes coming; mangler changes are probably required too.
ghc/includes/InfoTables.h
ghc/includes/MachRegs.h
ghc/includes/StgTypes.h
ghc/rts/GC.c
ghc/rts/GCCompact.c
ghc/rts/Printer.c
ghc/rts/RetainerProfile.c
ghc/rts/Sanity.c
ghc/rts/Stable.c