[GHC] #8685: -split-objs doesn't work for executables

GHC ghc-devs at haskell.org
Mon Jan 20 13:59:54 UTC 2014


#8685: -split-objs doesn't work for executables
------------------------------------+-------------------------------------
       Reporter:  refold            |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Driver            |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 While investigating [this bug
 report](https://github.com/haskell/cabal/issues/1611), I've noticed that
 the `-split-objs` option only works for libraries, but not for
 executables. That is, unlike in the case of libraries, the driver feeds
 only `A.o B.o ...` files to the linker instead of `A_split_0.o A_split_1.o
 ... B_split_0.o B_split_1.o ...`. It'd be nice if `-split-objs` could be
 changed to also work on executables.

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


More information about the ghc-tickets mailing list