https://sourceware.org/bugzilla/show_bug.cgi?id=16498
Bug ID: 16498
Summary: assertion fail at bfd/elf.c:4122
Product: binutils
Version: 2.25 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
[hjl@gnu-6 tbss]$ cat x.c
__thread int bar [20] = { 1 };
__thread int foo;
int data[30] = { 1 };
[hjl@gnu-6 tbss]$ cat tbss.t
SECTIONS
{
. = SIZEOF_HEADERS;
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
/*
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
*/
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
}
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
[hjl@gnu-6 tbss]$ 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 tbss]$
--
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