bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Problem with strip (binutils-2.11.2)


From: Nick Clifton
Subject: Re: Problem with strip (binutils-2.11.2)
Date: 09 Oct 2001 17:06:25 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Hi Beat,

  [I have restored the CC to the bug-binutils list.  Other people
   should be given a chance to see this conversation.]

> I used GNU-strip 2.11.2 (i. e. the most recent one). Since I have
> written you the first time I upgraded from gcc 2.95.2 to 3.0.1, but
> the problem persists.

Hmmm.  Do you have FTP or web access ?  If so, you might like to try 
downloading the latest CVS snapshot and see if that fixes the problem.

  ftp://sources.redhat.com/pub/binutils/snapshots

> As a test I stripped 'string' (form binutils 2.11.2, too). 'readelf'
> is from the same package, btw.
> 
> readelf -a strings-sun > elf.sun
> readelf -a strings-gnu > elf.gnu
> 
> <   PHDR           0x000034 0x00010034 0x00000000 0x000a0 0x000a0 R E 0x4
> <   INTERP         0x000000 0x000100d4 0x000100d4 0x00011 0x00011 R   0x1
> <       [Requesting program interpreter: ELF`a`]
> <   LOAD           0x000000 0x00010000 0x00010014 0x63317 0x63317 R E 0x10000
> <   LOAD           0x063318 0x00083318 0x00083318 0x00588 0x00b84 RWE 0x10000
> <   DYNAMIC        0x0636cc 0x000836cc 0x000836cc 0x000b0 0x000b0 RWE 0x4
> ---
> >   PHDR           0x000034 0x00010034 0x00000000 0x000a0 0x000a0 R E 0
> >   INTERP         0x0000d4 0x00000000 0x00000000 0x00011 0x00000 R   0
> >       [Requesting program interpreter: /usr/lib/ld.so.1]
> >   LOAD           0x000000 0x00010000 0x00000000 0x63317 0x63317 R E 0x10000
> >   LOAD           0x063318 0x00083318 0x00000000 0x00588 0x00b84 RWE 0x10000
> >   DYNAMIC        0x0636cc 0x000836cc 0x00000000 0x000b0 0x00000 RWE 0
> 
> You will notice that the output of elf.gnu has in section
> 'Requesting program interpreter'  ELF and some garbage instead of
> '/usr/lib/ld.so.1' in elf.sun. 

Ok, so one more questions.  Did you use any command line switches
when you invoked strip on string ?

I have tried reproducing your problem on a Solaris 2.7 machine and an
RH Linux 7.1 machine and both work fine.  So I guess it is either a
bug in the 2.11.2 sources or something to do with the command line
switches you are using.

Cheers
        Nick





reply via email to

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