https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #8 from Cary Coutant ---
> Can you cite any documentation that a non-STT_TLS symbol reference is
> permissible in a DTPMOD relocation?
The section symbol for an SHF_TLS section is effectively a TLS symbol, and must
be treated as
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #7 from Rich Felker ---
Can you cite any documentation that a non-STT_TLS symbol reference is
permissible in a DTPMOD relocation?
--
You are receiving this mail because:
You are on the CC list for the bug.
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
Cary Coutant changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
Rich Felker bugdal at aerifal dot cx changed:
What|Removed |Added
CC||bugdal at
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #2 from Cary Coutant ccoutant at google dot com ---
Please attach the .o file containing the original relocation.
--
You are receiving this mail because:
You are on the CC list for the bug.
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #3 from Timo Teräs timo.teras at iki dot fi ---
Created attachment 8004
-- https://sourceware.org/bugzilla/attachment.cgi?id=8004action=edit
object that results in bad reloc in elf
Pinpointed to originate from
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #4 from Timo Teräs timo.teras at iki dot fi ---
The minimal way to reproduce this seems to be:
-- test.cc
struct foo { int a; };
namespace
{
struct foo *get_global() throw()
{
static __thread struct foo
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #5 from Timo Teräs timo.teras at iki dot fi ---
Even more minimal test case in C:
int bar() { static __thread int foo; return foo; }
Notable that this does not cause the same issue:
__thread int