https://sourceware.org/bugzilla/show_bug.cgi?id=20324
Bug ID: 20324
Summary: ld.gold does not handle R_X86_64_TPOFF64 emitted by
gcc like ld.bfd
Product: binutils
Version: 2.26
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: chevrier.mathieu at gmail dot com
CC: ian at airs dot com
Target Milestone: ---
$ cat foo.c
struct comp {
unsigned a:8;
unsigned b:4;
};
__thread struct comp cmp;
__attribute__ ((__noinline__))
void f1(void)
{
cmp.a = 1;
cmp.b = 2;
}
int main(void)
{
f1();
return 0;
}
$ gcc -mcmodel=large -g foo.c -O -fuse-ld=bfd && echo success
success
$ gcc -mcmodel=large -g foo.c -O -fuse-ld=gold && echo success
/usr/bin/ld.gold: error: /tmp/ccdNc4iz.o: unexpected reloc 18 in object file
foo.c:12: error: unexpected reloc 18 in object file
collect2: error: ld returned 1 exit status
Executable generated by ld.bfd is working correctly.
Bug #12809 is maybe related.
--
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