Bug 816 - FAIL: TLS -fpic and -fno-pic exec transitions
Summary: FAIL: TLS -fpic and -fno-pic exec transitions
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-05 08:22 UTC by Christian Joensson
Modified: 2005-04-12 06:09 UTC (History)
1 user (show)

See Also:
Host: sparc-unknown-linux-gnu
Target: sparc-unknown-linux-gnu
Build: sparc-unknown-linux-gnu
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Joensson 2005-04-05 08:22:06 UTC
Aurora SPARC Linux release 2.0 (Kashmir FC3) UltraSparc IIi (Sabre) sun4u:

binutils-2.15.94.0.2-1.sparc
bison-1.875c-2.sparc
dejagnu-1.4.4-2.noarch
expect-5.42.1-1.sparc
gcc-3.4.2-6.fc3.sparc
gcc4-4.0.0-0.8sparc.sparc
glibc-2.3.3-99.sparcv9
glibc-2.3.3-99.sparc64
glibc-devel-2.3.3-99.sparc64
glibc-devel-2.3.3-99.sparc
glibc-headers-2.3.3-99.sparc64
glibc-headers-2.3.3-99.sparc
glibc-kernheaders-2.6-20sparc.sparc
kernel-2.6.11-1.1166sp1.sparc64
package kernel-devel is not installed
package kernel-smp is not installed
libgcc-3.4.2-6.fc3.sparc
libgcc-3.4.2-6.fc3.sparc64
libstdc++-3.4.2-6.fc3.sparc
libstdc++-3.4.2-6.fc3.sparc64
libstdc++-devel-3.4.2-6.fc3.sparc
libstdc++-devel-3.4.2-6.fc3.sparc64
make-3.80-5.sparc
nptl-devel-2.3.3-99.sparcv9
tcl-8.4.7-2.sparc

LAST_UPDATED: Tue Apr  5 07:01:00 UTC 2005

Native configuration is sparc-unknown-linux-gnu

Running /usr/local/src/trunk/src/ld/testsuite/ld-sparc/sparc.exp ...
/usr/local/src/trunk/objdir-binutils32/ld/../gas/as-new   -o 
tmpdir/tlssunpic32.o --32 -K PIC /usr/local/src/trunk/src/ld/testsuite/ld-
sparc/tlssunpic32.s
/usr/local/src/trunk/objdir-binutils32/ld/../gas/as-new   -o tmpdir/tlspic.o --
32 -K PIC /usr/local/src/trunk/src/ld/testsuite/ld-sparc/tlspic.s
/usr/local/src/trunk/objdir-binutils32/ld/ld-new  -o tmpdir/libtlssunpic32.so -
L/usr/local/src/trunk/src/ld/testsuite/ld-sparc -shared -melf32_sparc 
tmpdir/tlssunpic32.o tmpdir/tlspic.o
/usr/local/src/trunk/objdir-binutils32/ld/../binutils/readelf -WSsrl 
tmpdir/libtlssunpic32.so > dump.out
/usr/local/src/trunk/objdir-binutils32/ld/../binutils/objdump -drj.text 
tmpdir/libtlssunpic32.so > dump.out
/usr/local/src/trunk/objdir-binutils32/ld/../binutils/objdump -sj.got 
tmpdir/libtlssunpic32.so > dump.out
/usr/local/src/trunk/objdir-binutils32/ld/../binutils/objdump -sj.tdata 
tmpdir/libtlssunpic32.so > dump.out
PASS: TLS -fpic -shared transitions
/usr/local/src/trunk/objdir-binutils32/ld/../gas/as-new   -o tmpdir/tlslib.o --
32 -K PIC /usr/local/src/trunk/src/ld/testsuite/ld-sparc/tlslib.s
/usr/local/src/trunk/objdir-binutils32/ld/ld-new  -o tmpdir/libtlslib32.so -
L/usr/local/src/trunk/src/ld/testsuite/ld-sparc -shared -melf32_sparc 
tmpdir/tlslib.o
PASS: Helper shared library
/usr/local/src/trunk/objdir-binutils32/ld/../gas/as-new   -o 
tmpdir/tlssunbinpic32.o --32 -K PIC /usr/local/src/trunk/src/ld/testsuite/ld-
sparc/tlssunbinpic32.s
/usr/local/src/trunk/objdir-binutils32/ld/ld-new  -o 
tmpdir/libtlssunbinpic32.so -L/usr/local/src/trunk/src/ld/testsuite/ld-sparc -
shared -melf32_sparc tmpdir/tlssunbinpic32.o
PASS: Another helper shared library
/usr/local/src/trunk/objdir-binutils32/ld/../gas/as-new   -o 
tmpdir/tlssunbin32.o --32 /usr/local/src/trunk/src/ld/testsuite/ld-
sparc/tlssunbin32.s
/usr/local/src/trunk/objdir-binutils32/ld/ld-new  -o tmpdir/tlssunbin32 -
L/usr/local/src/trunk/src/ld/testsuite/ld-sparc -melf32_sparc 
tmpdir/libtlslib32.so tmpdir/tlssunbinpic32.o tmpdir/tlssunbin32.o
/usr/local/src/trunk/objdir-binutils32/ld/../binutils/readelf -WSsrl 
tmpdir/tlssunbin32 > dump.out
regexp_diff match failure
regexp "^ +\[ 9\] .dynamic +DYNAMIC +0+231f8 0+31f8 0+80 08 +WA +4 +0 +4$"
line   "  [ 9] .dynamic          DYNAMIC         000231f4 0031f4 000080 08  
WA  4   0  4"
regexp_diff match failure
regexp "^ +\[10\] .got +PROGBITS +0+23278 0+3278 0+14 04 +WA +0 +0 +4$"
line   "  [10] .got              PROGBITS        00023274 003274 000014 04  
WA  0   0  4"
regexp_diff match failure
regexp "^ +LOAD +0x0+2194 0x0+22194 0x0+22194 0x0+10f8 0x0+10f8 RWE 0x10000$"
line   "  LOAD           0x002194 0x00022194 0x00022194 0x010f4 0x010f4 RWE 
0x10000"
regexp_diff match failure
regexp "^ +DYNAMIC +0x0+31f8 0x0+231f8 0x0+231f8 0x0+80 0x0+80 RW +0x4$"
line   "  DYNAMIC        0x0031f4 0x000231f4 0x000231f4 0x00080 0x00080 RW  
0x4"
regexp_diff match failure
regexp "^0002327c +0000014e R_SPARC_TLS_TPOFF32 +00000000 +sG5 \+ 0$"
line   "00023278  0000014e R_SPARC_TLS_TPOFF32    00000000   sG5 + 0"
regexp_diff match failure
regexp "^00023280 +0000034e R_SPARC_TLS_TPOFF32 +00000000 +sG2 \+ 0$"
line   "0002327c  0000034e R_SPARC_TLS_TPOFF32    00000000   sG2 + 0"
regexp_diff match failure
regexp "^00023284 +0000074e R_SPARC_TLS_TPOFF32 +00000000 +sG6 \+ 0$"
line   "00023280  0000074e R_SPARC_TLS_TPOFF32    00000000   sG6 + 0"
regexp_diff match failure
regexp "^00023288 +0000084e R_SPARC_TLS_TPOFF32 +00000000 +sG1 \+ 0$"
line   "00023284  0000084e R_SPARC_TLS_TPOFF32    00000000   sG1 + 0"
regexp_diff match failure
regexp "^ +2: 0+231f8 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC$"
line   "     2: 000231f4     0 OBJECT  GLOBAL DEFAULT  ABS _DYNAMIC"
regexp_diff match failure
regexp "^ +[0-9]+: 0+231f8 +0 OBJECT +GLOBAL DEFAULT +ABS _DYNAMIC$"
line   "    36: 000231f4     0 OBJECT  GLOBAL DEFAULT  ABS _DYNAMIC"
regexp_diff match failure
regexp "^ +[0-9]+: 0+23278 +0 OBJECT +GLOBAL +HIDDEN +10 
_GLOBAL_OFFSET_TABLE_$"
line   "    61: 00023274     0 OBJECT  GLOBAL HIDDEN   10 
_GLOBAL_OFFSET_TABLE_"
FAIL: TLS -fpic and -fno-pic exec transitions
Comment 1 Christian Joensson 2005-04-05 08:28:24 UTC
Worked 20050321,
http://sourceware.org/ml/binutils/2005-03/msg00613.html
didn't work 20050331,
http://sourceware.org/ml/binutils/2005-03/msg00917.html
Comment 2 Christian Joensson 2005-04-12 06:08:32 UTC
Doesn't happen as of LAST_UPDATED: Tue Apr 12 05:27:33 UTC 2005
Comment 3 Christian Joensson 2005-04-12 06:09:28 UTC
resolved...