"strip" works for binutils-2.20.51.0.8, but beyond this version, strip will
throw the errors shown below, and running the stripped program will result in a
"Segmentation fault".
# strip -V
GNU strip (Linux/GNU Binutils) 2.20.51.0.11.20100810

# /usr/bin/strip DivasP 
BFD: stHxSPD0: section .note.ABI-tag lma 0x8049094 adjusted to 0x804a094
BFD: stHxSPD0: section .init lma 0x80490b4 adjusted to 0x804a0b4
BFD: stHxSPD0: section .text lma 0x80490f0 adjusted to 0x804a0e5
BFD: stHxSPD0: section .fini lma 0x81a8c9c adjusted to 0x81a9c91
BFD: stHxSPD0: section .rodata lma 0x81a8cc0 adjusted to 0x81a9cad
BFD: stHxSPD0: section __libc_subinit lma 0x81f0f6c adjusted to 0x81f1f57
BFD: stHxSPD0: section __libc_subfreeres lma 0x81f0f78 adjusted to 0x81f1f63
BFD: stHxSPD0: section __libc_atexit lma 0x81f0f98 adjusted to 0x81f1f83
BFD: stHxSPD0: section `__libc_subfreeres' can't be allocated in segment 0
LOAD: .note.ABI-tag .init .text .fini .rodata __libc_subinit __libc_subfreeres
__libc_atexit
BFD: stHxSPD0: section `__libc_atexit' can't be allocated in segment 0
LOAD: .note.ABI-tag .init .text .fini .rodata __libc_subinit __libc_subfreeres
__libc_atexit

-- 
           Summary: cannot strip binary DivaP for versions beyond binutils-
                    2.20.51.0.8
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: jeff dot chua dot linux at gmail dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: build-x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=11954

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to