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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Alan Modra <amodra at gmail dot com> 2011-06-10 01:36:31 
UTC ---
Your claim that this binary "works" before stripping is irrelevant.  To load
and run a binary, ld.so uses the ELF program headers.  objcopy/strip needs the
ELF sections headers to be correct too.  They don't appear to be valid.  eg.
  [ 2] .got              PROGBITS        000000000072c1c8 3d7cf0 000008 08  WA 
0   0  8
  [ 3] .got.plt          PROGBITS        000000000072c480 3d7cf8 000070 08  WA 
0   0  8
Theses two sections are supposed to be in the same segment, but their file
offsets don't agree with their VMAs.  So something went wrong at the time this
binary was created, most likely caused by a buggy linker script, but many other
possibilities exist.

Not a bug in strip.  Please don't reopen.  You haven't spent any time analysing
the file.  I have, and that was a waste of my time.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Reply via email to