http://sourceware.org/bugzilla/show_bug.cgi?id=12809
Summary: R_X86_64_TPOFF64 isn't handled properly
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: [email protected]
ReportedBy: [email protected]
[hjl@gnu-6 tmp]$ cat foo.c
extern void abort (void);
__thread char thra[2];
void
__attribute__((noinline))
f1 (void)
{
int i;
for (i = 0; i < 2; i++)
thra[i]= i;
}
int
main (void)
{
f1 ();
if (thra[0] != 0)
abort ();
return 0;
}
[hjl@gnu-6 tmp]$ gcc -mcmodel=large -g foo.c -O
[hjl@gnu-6 tmp]$ ./a.out
Segmentation fault
[hjl@gnu-6 tmp]$
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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