bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/12864] strip: Broken ELF binary size explodes after stripp


From: amodra at gmail dot com
Subject: [Bug binutils/12864] strip: Broken ELF binary size explodes after stripping
Date: Fri, 10 Jun 2011 01:37:06 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]