------- Additional Comments From YLitvinenko at astana dot oilfield dot slb dot
com 2009-11-19 08:37 -------
I repeated the test (see test script between lines "---- cut here ----")
using gcc-4.4.2.
Result the same.
-------- cut here -----
SRC=test_binutils.c
OBJ=test_binutils.o
OPT="/usr/lib/crt1.o /usr/lib/crti.o /usr/ccs/lib/values-Xa.o /usr/gnu/lib/gcc/
i386-pc-solaris2.11/4.4.2/crtbegin.o test_binutils.o -L/lib -lc /usr/gnu/lib/
gcc/i386-pc-solaris2.11/4.4.2/crtend.o /usr/lib/crtn.o"
cat > $SRC <<EOF
__thread int x = 17;
int main() {
return x != 17;
}
EOF
/usr/gnu/bin/gcc -c -o $OBJ $SRC
LD=/usr/gnu/bin/ld
OUT=gnu-4.4.2_ld
$LD -o $OUT $OPT
LD=/usr/bin/ld
OUT=sun_ld
$LD -o $OUT $OPT
-------- cut here -----
$ ./gnu-4.4.2_ld ; print $?
1
$ ./sun_ld ; print $?
0
Versions:
$ /usr/gnu/bin/gcc --version
gcc (GCC) 4.4.2
$ /usr/gnu/bin/ld --version
GNU ld (GNU Binutils) 2.20
I asked one of my friends to compile, link and run test_binutils.c on Linux
with gcc-4.4.2 and ld version 2.20. On Linux the resulting program gives
correct result (echo $? gives 0).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10881
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils