#3668: PIE-enabled hardened gcc might broke GHC.
---------------------------+------------------------------------------------
  Reporter:  secludedsage  |          Owner:        
      Type:  bug           |         Status:  closed
  Priority:  normal        |      Milestone:        
 Component:  Compiler      |        Version:  6.10.4
Resolution:  fixed         |       Keywords:        
Difficulty:                |             Os:  Linux 
  Testcase:                |   Architecture:  x86   
   Failure:  None/Unknown  |  
---------------------------+------------------------------------------------
Comment (by kolmodin):

 We've had similar patches like this in previous ghc versions for Gentoo,
 but with ghc 6.10.4 it somehow slipped away.

 I don't know if it can be solved in the build system in another way.
 The flags we put into {{{${GHC_CFLAGS}}}} is currently parts the users'
 {{{${CFLAGS}}}}, mostly to do with the arch and ABI flags. Then for
 hardend we add {{{-nopie}}}, for gccs with stack protectors we turn that
 off.

 For ppc64 we need {{{-mminimal-toc}}}, and for earlier ghc versions we've
 passed the {{{-Wa,--noexecstack}}} flag due to QA in Gentoo.

 These are flags we always want in place, thus it's natural to put it in
 the ghc wrapper.

 To see more details on how all this funny business comes together, see the
 ghc-6.12rc2 ebuild:
 http://code.haskell.org/gentoo/gentoo-haskell/dev-
 lang/ghc/ghc-6.12.0.20091121.ebuild

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3668#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to