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

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

binutils-12.2.1 strip corrupts Solaris binaries (.interp not in segment


From: Darren Tucker
Subject: binutils-12.2.1 strip corrupts Solaris binaries (.interp not in segment)?
Date: Sat, 06 Jul 2002 16:19:32 +1000

Hello.
        I'm not quite sure where the fault lies here but I've found that GNU
strip will corrupt binaries linked by /usr/ccs/bin/ld on my Solaris 7 &
8 boxes.

        Both sets of boxes have very recent patch clusters (let me know if you
need exact details).

        Thanks,
                -Daz.

$ cd binutils-2.12.1
$ ./configure && make
Configuring for a sparc-sun-solaris2.7 host.
[snip]
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.1/specs
Configured with: ../gcc-3.1/configure --with-threads=solaris
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.1
$ gcc hello.c
$ file a.out
a.out:          ELF 32-bit MSB executable SPARC Version 1, dynamically
linked, not stripped
$ ./a.out
Hello,world.
$ binutils/strip-new ./a.out
BFD: ./stbAa4B5: warning: allocated section `.interp' not in segment
$ file a.out
a.out:          ELF 32-bit MSB executable SPARC Version 1, dynamically
linked, stripped
$ ./a.out
a.out: Cannot find ELF
Killed

-- 
Darren Tucker (dtucker at zip.com.au)
GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.



reply via email to

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