[Top][All Lists]

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

[Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue

From: nickc at redhat dot com
Subject: [Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?)
Date: 22 Feb 2007 18:56:55 -0000

------- Additional Comments From nickc at redhat dot com  2007-02-22 18:56 
Hi Guys,

  I think that I may have found the problem.  When the BFD library is getting
ready to write out the program headers it checks to see if it has a set already
supplied to it.  (Either from the input binary in the case of stripping an
executable, or via a linker script).  If it does have these headers it tries to
use them unless it decides that something has changed between the time the
headers were read in and the time that the sections are ready to write out. 
This check however was not taking into account the special nature of the INTERP
header on Solaris, which has a slightly non-standard format.  The solution, I
think, is to always regenerate the program headers when creating Solaris
binaries, although possibly this might break custom Solaris linker scripts.  We
shall see...

  In the meantime please could you try applying the uploaded patch to the
current mainline binutils sources and then building a new version of strip. 
This should work.  Alternatively please see if you can run the
c-cc5-gnustrip.patched.mainline binary which I have also uploaded.  This is a
stripped version of c-cc5 binary that Simon sent to me.




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

reply via email to

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