Andrea Vezzosi pushed to branch wip/andrea/splitsections at Glasgow Haskell Compiler / GHC

Commits:

2 changed files:

Changes:

  • compiler/GHC/Driver/Session.hs
    ... ... @@ -3806,7 +3806,6 @@ between the two does not seem uniform. TODO: Make this choice more evident and u
    3806 3806
     
    
    3807 3807
     {- Note [Split sections are not supported on Darwin]
    
    3808 3808
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    3809
    -
    
    3810 3809
     On Darwin, split sections are either ignored by the backends (NCG, C) or would
    
    3811 3810
     cause errors (LLVM, see split-sections-darwin test).
    
    3812 3811
     
    

  • docs/users_guide/phases.rst
    ... ... @@ -1065,8 +1065,7 @@ for example).
    1065 1065
     
    
    1066 1066
         This flag is ignored on Darwin as the Mach-O object format is not suitable
    
    1067 1067
         for split sections. The ``.subsections_via_symbols`` directive and the
    
    1068
    -    linker's ``-dead_strip``, which are used regardless of this flag, where
    
    1069
    -    supported.
    
    1068
    +    linker's ``-dead_strip`` are used where supported, regardless of this flag.
    
    1070 1069
     
    
    1071 1070
     .. ghc-flag:: -static
    
    1072 1071
         :shortdesc: Use static Haskell libraries