[GHC] #11388: Bad Windows PE handling in GHC runtime linker
GHC
ghc-devs at haskell.org
Sat Jan 9 13:28:36 UTC 2016
#11388: Bad Windows PE handling in GHC runtime linker
-------------------------------------+-------------------------------------
Reporter: awson | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime | Version:
System (Linker) |
Keywords: | Operating System: Windows
Architecture: | Type of failure: Other
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Playing with `-fsplit-sections` on Windows I've found a pile of ancient
(it was borrowed from Hugs interpreter code and I don't even know when was
it created), absolutely redundant and plain wrong code in RTS linker.
Technically it is a bug, but it doesn't break things when used with
current Windows binutils with no special linker scripts involved.
OTOH, it slows down runtime linker on Windows noticeably and thus can be
considered as a performance bug.
I've attached the patch which fixes this.
The nice side-effect for existing users is that GHCi now loads compiled
object code much faster on Windows.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11388>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list