[GHC] #10369: arm binaries have an executable stack

GHC ghc-devs at haskell.org
Fri May 1 10:20:56 UTC 2015


#10369: arm binaries have an executable stack
-----------------------------------+-------------------------------------
              Reporter:  erikd     |             Owner:
                  Type:  bug       |            Status:  new
              Priority:  normal    |         Milestone:  7.12.1
             Component:  Compiler  |           Version:  7.11
              Keywords:            |  Operating System:  Unknown/Multiple
          Architecture:  arm       |   Type of failure:  Other
             Test Case:            |        Blocked By:
              Blocking:            |   Related Tickets:
Differential Revisions:            |
-----------------------------------+-------------------------------------
 Test `T703` is currently failing on on armhf/linux. The test result shows:

 {{{
 GNU_STACK  0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0
 }}}

 Arm compiles via LLVM, but x86_64 executbles compiled via LLVM do not have
 an executable stack.

 The other difference between the x86_64 and Arm is the Arm uses `ld.gold`
 as the linker. Sure enough, adding `-optl -Wl,-z,noexecstack` to the ghc
 command line fixes this, but a better solution is needed.

 This is probably also an issue on AArch64 which also uses the `ld.gold`
 linker.

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


More information about the ghc-tickets mailing list