On Fri, Apr 05, 2013 at 11:12:38PM -0400, Dubiousjim wrote:
>     target$ inplace/bin/ghc-stage2 -o hello-cross hello.hs
>     [1 of 1] Compiling Main             ( hello.hs, hello.o )
>     Linking hello-cross ...
>     target$ ./hello-cross
>     Can't modify application's text section; use the GCC option -fPIE
>     for position-independent executables.

You can pass -fPIE to gcc by using the -optc-fPIE flag.


Thanks
Ian


_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to