|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/17057] Production of DSOs using TLSDESC is utterly broken on i386 |
Date: | Tue, 15 Jul 2014 17:33:12 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17057 --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- A self-contained testcase: address@hidden pr17057]$ cat x.c __thread int my_tls = 1; int *my_tls_addr() { return &my_tls; } address@hidden pr17057]$ cat y.c extern void foo (void); void bar (void) { foo (); } address@hidden pr17057]$ gcc -fPIC -m32 y.c -c -O2 x.c -mtls-dialect=gnu2 address@hidden pr17057]$ ld -m elf_i386 -shared -o x.so y.o x.o ld: BFD (Linux/GNU Binutils) 2.24.51.0.4.20140708 assertion fail /net/gnu-6/export/linux/src/binutils/binutils/bfd/elf32-i386.c:4035 address@hidden pr17057]$ -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |