https://sourceware.org/bugzilla/show_bug.cgi?id=16498
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Another testcase:
[hjl@gnu-6 bad]$ cat x.c
__thread int bar [20] __attribute__ ((__section__ ("tls_data_init"))) = { 1 };
__thread int foo;
int data[30] = { 1 };
[hjl@gnu-6 bad]$ cat tbss.t
SECTIONS
{
tls_data_init : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
}
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
[hjl@gnu-6 bad]$ make
gcc -fPIC -c -o x.o x.c
./ld -shared -T tbss.t -o tls.so x.o
./ld: BFD (GNU Binutils) 2.24.51.20140122 assertion fail
/export/gnu/import/git/sources/binutils-gdb/bfd/elf.c:4122
./ld: BFD (GNU Binutils) 2.24.51.20140122 assertion fail
/export/gnu/import/git/sources/binutils-gdb/bfd/elf.c:4122
make: *** [tls.so] Error 1
[hjl@gnu-6 bad]$
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils