[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Re: strip broken on Solaris
From: |
Bryant, Nathan |
Subject: |
RE: Re: strip broken on Solaris |
Date: |
Tue, 31 Jul 2001 17:28:31 -0400 |
Sorry, I spoke too soon.
The problem is present when stripping both ELF32 and ELF64 binaries but it
only manifests itself with binaries linked with Sun's ld. This caused me to
not notice the problem initially on ELF32. (my system is solaris 2.8 with a
fairly recent recommended patch cluster.)
Strangely, strip twice in a row and the first time, it breaks your binary,
and fixes itself the second time.
$ gcc -B/usr/ccs/bin -o hello hello.c
$ ls -l hello
-rwxr-xr-x 1 nbryant other 6116 Jul 31 17:16 hello
$ ./hello
hello
$ strip hello
BFD: stBnaags: warning: allocated section `.interp' not in segment
$ ls -l hello
-rwxr-xr-x 1 nbryant other 67016 Jul 31 17:16 hello
$ ./hello
hello: Cannot find ELF
Killed
$ strip hello
$ ls -l hello
-rwxr-xr-x 1 nbryant other 3576 Jul 31 17:16 hello
$ ./hello
hello
$ strip --version
GNU strip 2.11.90
(checked out from CVS today)
-----Original Message-----
From: Bryant, Nathan
Sent: Tuesday, July 31, 2001 3:35 PM
To: 'address@hidden'
Cc: 'address@hidden'
Subject: Re: strip broken on Solaris
I found this message in the mailing list archive:
http://sources.redhat.com/ml/bug-binutils/2001-q3/msg00015.html
--- snip ---
Hi Lars,
> SunOS 5.7 Generic_106541-12 sun4u sparc
> binutils 2.11 and 2.11.2; configured w/o any options
> $ ./strip ./addr2line
> BFD: ./stJSaGrl: warning: allocated section `.interp' not in segment
> $ ./addr2line
> addr2line: Cannot find ELF
I am not sure if this helps you, but this problem does not appear to
exist in the current CVS sources for binutils.
Cheers
Nick
--- snip ---
FYI, this is only true for elf32_sparc. The problem hasn't been fixed in
elf64.