https://sourceware.org/bugzilla/show_bug.cgi?id=13671

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
Does it look like a testcase?

[hjl@gnu-bdx-1 solaris-1]$ cat x.c
extern __thread int __gmpfr_flags;

int
_start (void)
{
  return __gmpfr_flags;
}
[hjl@gnu-bdx-1 solaris-1]$ cat y.c
__thread int __gmpfr_flags;
[hjl@gnu-bdx-1 solaris-1]$ make
gcc -m32 -fPIC   -c -o x.o x.c
gcc -m32 -fPIC   -c -o y.o y.c
./ld -m elf_i386_sol2 -shared -o y.so y.o
./ld -m elf_i386_sol2 -o x x.o y.so
readelf -r x

Relocation section '.rel.dyn' at offset 0x224 contains 1 entry:
 Offset     Info    Type            Sym.Value  Sym. Name
08049338  00000225 R_386_TLS_TPOFF32 00000000   __gmpfr_flags
[hjl@gnu-bdx-1 solaris-1]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to