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: [hjl@gnu-6 pr17057]$ cat x.c __thread int my_tls = 1; int *my_tls_addr() { return &my_tls; } [hjl@gnu-6 pr17057]$ cat y.c extern void foo (void); void bar (void) { foo (); } [hjl@gnu-6 pr17057]$ gcc -fPIC -m32 y.c -c -O2 x.c -mtls-dialect=gnu2 [hjl@gnu-6 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 [hjl@gnu-6 pr17057]$ -- 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