bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/13947] Strip applied twice corrupts binaries compiled with


From: amodra at gmail dot com
Subject: [Bug binutils/13947] Strip applied twice corrupts binaries compiled with --emit-relocs
Date: Sun, 08 Apr 2012 23:18:17 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13947

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-linux, i686-linux,
                   |                            |arm-linuxeabi
                 CC|                            |amodra at gmail dot com

--- Comment #1 from Alan Modra <amodra at gmail dot com> 2012-04-08 23:18:17 
UTC ---
Looks OK on powerpc-linux and powerpc64-linux with current mainline binutils
$ gcc -o hello /src/tmp/hello.c -Wl,-q
$ ./hello 
Hello world
$ strip hello
$ ./hello
Hello world
$ strip hello
$ ./hello
Hello world

On x86-64 the second strip gives
$ strip hello
BFD: stY8lcQd: section `.ctors' can't be allocated in segment 3
LOAD: .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
BFD: stY8lcQd: section `.dtors' can't be allocated in segment 3
LOAD: .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
BFD: stY8lcQd: section `.jcr' can't be allocated in segment 3
LOAD: .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
BFD: stY8lcQd: section `.dynamic' can't be allocated in segment 3
LOAD: .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
BFD: stY8lcQd: section `.got' can't be allocated in segment 3
LOAD: .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
BFD: stY8lcQd: section `.got.plt' can't be allocated in segment 3
LOAD: .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
BFD: stY8lcQd: section `.data' can't be allocated in segment 3
LOAD: .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
BFD: stY8lcQd: section `.bss' can't be allocated in segment 3
LOAD: .ctors .dtors .jcr .dynamic .got .got.plt .data .bss
$ ./hello
Segmentation fault

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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