[Top][All Lists]
[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: |
10 Oct 2001 14:58:36 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Hi Beat,
> I downloaded binutils-011009.tar.bz2 and compiled it with gcc 3.0.1.
> The results when stripping 'strings' from the same package are still
> the same:
> < 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 0x6b357 0x6b357 R E 0x10000
> < LOAD 0x06b358 0x0008b358 0x0008b358 0x0059c 0x009a0 RWE 0x10000
> < DYNAMIC 0x06b70c 0x0008b70c 0x0008b70c 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 0x6b357 0x6b357 R E 0x10000
> > LOAD 0x06b358 0x0008b358 0x00000000 0x0059c 0x009a0 RWE 0x10000
> > DYNAMIC 0x06b70c 0x0008b70c 0x00000000 0x000b0 0x00000 RWE 0
Oh dear - when I try to reproduce this problem, everything appears to
execute correctly. :-( For example:
1239754 Oct 9 08:39 strings*
413060 Oct 9 08:40 strings-new*
413104 Oct 9 08:41 strings-sol*
strings-new is the result of running ./strip on strings. strings-sol is
the result of running /usr/ccs/bin/string on strings. All three of
these executables work. It is also interesting to note that the
stripped executables appear to be significantly smaller than the ones
you are obtaining:
> < Start of section headers: 462348 (bytes into file)
> ---
> > Start of section headers: 443972 (bytes into file)
vs:
strings-new:
Start of section headers: 412060 (bytes into file)
strings-sol:
Start of section headers: 412104 (bytes into file)
Maybe it is a difference in the configure options we are using. I
just ran "configure" from the top level of the binutils sources. ie I
did not add any extra command line switches. How did you configure
your binaries ?
Cheers
Nick