[GHC] #12460: Solaris linker does not recognize option --gc-sections

GHC ghc-devs at haskell.org
Sat Aug 27 22:26:51 UTC 2016


#12460: Solaris linker does not recognize option --gc-sections
-------------------------------------+-------------------------------------
        Reporter:  herzen            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
  (Linking)                          |
      Resolution:                    |             Keywords:
Operating System:  Solaris           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by thomie):

 `git grep gc-sections` only returns one hit (and a comment). In
 `compiler/main/DriverPipeline.hs:`:
 {{{
                       ++ (if sLdIsGnuLd mySettings
                           then ["-Wl,--gc-sections"]
                           else [])
 }}}

 This code was added in 4a32bf925b8aba7885d9c745769fe84a10979a53 (#8405).

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


More information about the ghc-tickets mailing list