[GHC] #10597: Linking of binaries fails on OpenBSD due to PIE support

GHC ghc-devs at haskell.org
Tue Jul 7 18:49:24 UTC 2015


#10597: Linking of binaries fails on OpenBSD due to PIE support
-------------------------------------+-------------------------------------
        Reporter:  kgardas           |                   Owner:  kgardas
            Type:  bug               |                  Status:  patch
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.11
      Resolution:                    |                Keywords:
Operating System:  OpenBSD           |            Architecture:  x86_64
 Type of failure:  Building GHC      |  (amd64)
  failed                             |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by Karel Gardas <karel.gardas@…>):

 In [changeset:"d03bcfaa255279c7f0c0d931b3202d45faa9b8e0/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="d03bcfaa255279c7f0c0d931b3202d45faa9b8e0"
 always use -fPIC on OpenBSD/AMD64 platform

 Summary:
 This patch switches -fPIC on for every invocation of GHC
 on OpenBSD/AMD64 platform. The reason is OpenBSD's support
 for PIE (PIC for executables) hence -fPIC is also needed
 for GHC compiled code.

 Fixes #10597

 Reviewers: austin

 Subscribers: thomie, bgamari

 Differential Revision: https://phabricator.haskell.org/D1027
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10597#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list