x86_64: support PIC and therefore, Mac OS X in the NCG
authorwolfgang.thaller@gmx.net <unknown>
Thu, 7 Dec 2006 13:16:07 +0000 (13:16 +0000)
committerwolfgang.thaller@gmx.net <unknown>
Thu, 7 Dec 2006 13:16:07 +0000 (13:16 +0000)
commit28c556a5e0ed5c2687f19ec6ef8853b79ad65518
treef36a46c762a88e0e5f930363ffe16d481e6daf71
parent601e8739f2af25f946a8a1b4273172b491c5bced
x86_64: support PIC and therefore, Mac OS X in the NCG

Supporting x86_64-apple-darwin in the NCG basically boils down to supporting
position-independent code in the NCG.
PIC code works almost exactly the same as on x86_64-linux, while position-dependent
code is not supported at all.
This patch implements -fPIC for x86_64-linux, too, but that is untested.
compiler/cmm/CLabel.hs
compiler/cmm/CmmOpt.hs
compiler/main/StaticFlags.hs
compiler/nativeGen/AsmCodeGen.lhs
compiler/nativeGen/MachCodeGen.hs
compiler/nativeGen/PositionIndependentCode.hs
compiler/nativeGen/PprMach.hs
mk/package.mk