executable stack flag
juhp at community.haskell.org
Tue Jul 9 06:36:42 CEST 2013
We noticed  in Fedora that ghc (7.4 and 7.6) are linking executables
(again ) with the executable stack flag set. I haven't starting looking
at the ghc code yet but wanted to ask first if it is intentional/necessary?
(ghc-7.0 doesn't seem to do this.) Having the flag set is considered a bit
of a security risk so it would be better if all generated executable did
not have it set.
I did some very basic testing of various executables, clearing their
flags  and they all seemed to run ok without the executable stack flag
set but I can't claim to have tested very exhaustively. (I thought perhaps
it might be related to TemplateHaskell for example but even those
executables seem to work, though I am sure I have not exercised all the
Does someone know the current status of this?
Will anything break if the flag is not set?
Is it easy to patch ghc to not set the flag?
Does it only affect the NCG backend?
 using "execstack -c"
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Glasgow-haskell-users