[GHC] #8405: experiment with using function-sections for linking (for smaller libs and executables)

GHC ghc-devs at haskell.org
Wed Sep 9 02:59:48 UTC 2015


#8405: experiment with using function-sections for linking (for smaller libs and
executables)
-------------------------------------+-------------------------------------
        Reporter:  carter            |                   Owner:
            Type:  task              |                  Status:  new
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Compiler          |                 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 Revisions:
-------------------------------------+-------------------------------------

Comment (by refold):

 Replying to [comment:9 olsner]:
 >
 > [...] that made my "hello world" 10% smaller with sections than with
 split-objs (20% diff after stripping).

 Very cool, thanks for working on this! Link times with `--gc-sections`
 should be also much faster than with split-objs, especially for something
 like OpenGL.

 And it looks like `--gc-sections` [https://sourceware.org/git/gitweb.cgi?p
 =binutils-gdb.git;h=0f088b2a9417b1d4ed597849ffa671eba25f5051 is now
 finally supported on Windows] (though the patch still needs testing).

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


More information about the ghc-tickets mailing list