|
From: | Nick Clifton |
Subject: | Re: [Bug binutils/3535] GNU strip 2.17 corrupts Sun CC/cc binaries (ld issue?) |
Date: | Thu, 22 Feb 2007 17:55:27 +0000 |
User-agent: | Thunderbird 1.5.0.9 (X11/20061215) |
Hi Peter,
I'm not sure were to get "a strip built from the current mainline binutils sources" but I should be able to try that too if you can point me to it.
The sources are under CVS control and can be checked out via the procedure documented here:
http://sourceware.org/binutilsThere is no real need for you to do this though, as I have checked myself and these mainline sources also have the problem.
I do not know the cause yet, but at least one aspect of the problem is that the corrupt stripped binaries have a bogus .interp section. (Try running 'readelf -l' on them to see this). The bug is something to do with how the BFD library is regenerating the program headers after various sections have been stripped out of the binary.
I have tracked the huge size increase down to H.J.'s patch for PR 2258, but I do not know yet what, if anything, is wrong with that patch. Nor do I know if the huge size increase is actually a problem. After all on a file system that supports holes, the huge stripped binaries do not actually take up more disk space than their tiny brethren.
Cheers Nick
[Prev in Thread] | Current Thread | [Next in Thread] |