#5382: strip: Cannot manipulate object-file created with ghc-7.2.0.20110728
under
solaris
-------------------------+--------------------------------------------------
Reporter: maeder | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Solaris | Blocking:
Architecture: x86 | Failure: None/Unknown
-------------------------+--------------------------------------------------
Comment(by maeder):
I was not able to fully install binutils-2.21 (building "ld" failed), but
"strip" was installed and this GNU strip command could remove the .debug-
ghc-link-info section.
parts of the man page for our solaris strip say:
{{{
SYNOPSIS
/usr/ccs/bin/strip [-lVx] file...
DESCRIPTION
The strip command removes the symbol table SHT_SYMTAB and
its associated string table, debugging information, and line
number information from ELF object files. That is, besides
the symbol table and associated string table, the following
sections are removed:
.line
.debug*
.stab*
}}}
{{{
OPTIONS
The amount of information stripped from the ELF object file
can be controlled by using any of the following options:
-l Strip line number information only.Does not strip
the symbol table or debugging information.
-V Prints, on standard error, the version number of
strip.
-x Does not strip the symbol table. Debugging and line
number information may be stripped.
}}}
{{{
-bash-3.00$ strip -V
strip: Software Generation Utilities (SGU) Solaris-ELF (4.0)
}}}
Also "ghc -optl-s" (going via gcc) did not remove the .debug-ghc-link-info
section, but did not fail and considerably reduced the object size.
(4194076 unstripped, 2745692 "ghc -optl-s", 2743564 GNU stripped)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5382#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs