[GHC] #8685: -split-objs doesn't work for executables
#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
#8685: -split-objs doesn't work for executables -------------------------------------+------------------------------------- Reporter: refold | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.6.3 Component: Driver | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * type: bug => feature request Comment: It is mentioned in the user's guide: https://www.haskell.org/ghc/docs/latest/html/users_guide/flag- reference.html -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8685#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8685: -split-objs doesn't work for executables -------------------------------------+------------------------------------- Reporter: refold | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.6.3 Component: Driver | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Description changed by refold: Old description:
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.
New description: While investigating [https://github.com/haskell/cabal/issues/1611 this bug report], 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#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8685: -split-objs doesn't work for executables -------------------------------------+------------------------------------- Reporter: refold | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Driver | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): -------------------------------------+------------------------------------- Comment (by Marge Bot <ben+marge-bot@…>): In [changeset:"37f257afcd6a52cf4d76c60d766b1aeb520b9f05/ghc" 37f257af/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="37f257afcd6a52cf4d76c60d766b1aeb520b9f05" Rip out object splitting The splitter is an evil Perl script that processes assembler code. Its job can be done better by the linker's --gc-sections flag. GHC passes this flag to the linker whenever -split-sections is passed on the command line. This is based on @DemiMarie's D2768. Fixes Trac #11315 Fixes Trac #9832 Fixes Trac #8964 Fixes Trac #8685 Fixes Trac #8629 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8685#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8685: -split-objs doesn't work for executables -------------------------------------+------------------------------------- Reporter: refold | Owner: (none) Type: feature request | Status: closed Priority: normal | Milestone: 8.10.1 Component: Driver | Version: 7.6.3 Resolution: fixed | Keywords: 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): * status: new => closed * resolution: => fixed * milestone: => 8.10.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8685#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8685: -split-objs doesn't work for executables -------------------------------------+------------------------------------- Reporter: refold | Owner: (none) Type: feature request | Status: closed Priority: normal | Milestone: 8.10.1 Component: Driver | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): `-split-objs` has been removed in favor of `-split-sections`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8685#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC