#3571: Bizzarely bloated binaries
---------------------------------+------------------------------------------
    Reporter:  guest             |        Owner:              
        Type:  bug               |       Status:  new         
    Priority:  low               |    Milestone:  7.0.1       
   Component:  Compiler          |      Version:  6.10.4      
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by batterseapower):

 Of course, it is expected behaviour that strip eliminates the bloat. The
 point of the trimming code above is to demonstrate that almost all of the
 effect of strip is just because it removes useless gunk that lives outside
 *any PE section*! This trimming can be accomplished by just truncating the
 PE to the image length encoded within it.

 Even debug data should have a section - indeed many PE executables have a
 .debug section - but this stuff at the end is not in any section and
 therefore just seems entirely redundant.

 So even though we know that strip fixes the problem, we do not know why
 the problem exists in the first place...

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to