patch applied (ghc): x86_64: support PIC and therefore, Mac OS X in the NCG
Wolfgang Thaller <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.all |
|---|---|
| Message-ID | <20061207132949.GA7480__22726.9851988696$1165498196$gmane$org@cvs.haskell.org> |
Thu Dec 7 05:16:07 PST 2006 [email protected] * 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. M ./compiler/cmm/CLabel.hs -1 +17 M ./compiler/cmm/CmmOpt.hs -1 +7 M ./compiler/main/StaticFlags.hs +4 M ./compiler/nativeGen/AsmCodeGen.lhs -20 +20 M ./compiler/nativeGen/MachCodeGen.hs -12 +45 M ./compiler/nativeGen/PositionIndependentCode.hs -63 +87 M ./compiler/nativeGen/PprMach.hs -12 +16 M ./mk/package.mk -1 +4