[GHC] #13624: loadObj() does not respect alignment

GHC ghc-devs at haskell.org
Mon May 1 02:33:28 UTC 2017


#13624: loadObj() does not respect alignment
-------------------------------------+-------------------------------------
        Reporter:  tmcdonell         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.4.1
       Component:  Runtime System    |              Version:  8.0.1
  (Linker)                           |
      Resolution:                    |             Keywords:  linker
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * priority:  normal => high
 * cc: angerman (added)
 * keywords:   => linker
 * milestone:   => 8.4.1


Comment:

 Wow, I didn't know that. That is terrible!

 My understanding is that the linker (at least in the case of ELF) actually
 maps sections incorrectly anyways: We ought to be using the object file's
 segments, not sections, for the purposes of mapping. This will likely
 reduce the number of mappings we need to setup, and allow us to set the
 correct RWX access control bits (e.g. currently we map code as writable,
 which is rather terrifying from a security perspective).

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


More information about the ghc-tickets mailing list