Re: patch applied (ghc): x86_64: support PIC and therefore, Mac OS X in the NCG
Simon Marlow <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.all |
|---|---|
| Message-ID | <45792FE7.5030601__45322.0627540306$1165570042$gmane$org@microsoft.com> |
Wolfgang Thaller wrote: > 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. Yay Wolfgang :) I'd looked into this a while back (for x86_64-linux) and I have some patches lying around, at some point I'll compare mine with yours. Have you done everything to make dyn-linked binaries work on Linux? I recall some problems with the R_COPY relocations. Cheers, Simon