https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #5 from Timo Teräs ---
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 __attribute__((__visibility__("hidden"))) foo; int
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #4 from Timo Teräs ---
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 global;
return &global;
https://sourceware.org/bugzilla/show_bug.cgi?id=17699
--- Comment #3 from Timo Teräs ---
Created attachment 8004
--> https://sourceware.org/bugzilla/attachment.cgi?id=8004&action=edit
object that results in bad reloc in elf
Pinpointed to originate from ./gcc-4.9.2/libstdc++-v3/libsupc++
: gold
Assignee: ccoutant at google dot com
Reporter: timo.teras at iki dot fi
CC: ian at airs dot com
gold from binutils 2.24 with few CVE patch applied, and compiling gcc 4.9.2's
libstdc++ produce incorrect R_386_TLS_DPT_MOD32 relocation on x86 (on x86_64
an
http://sourceware.org/bugzilla/show_bug.cgi?id=13488
--- Comment #3 from Timo Teräs 2011-12-09 18:30:32
UTC ---
Sorry, should've checked vanilla GCC sources. This seems to come from Gentoo
PIE patch set for GCC.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
-
http://sourceware.org/bugzilla/show_bug.cgi?id=13488
Timo Teräs changed:
What|Removed |Added
Summary|ctor linking for pie|ctor linking for static pie
http://sourceware.org/bugzilla/show_bug.cgi?id=13488
Bug #: 13488
Summary: ctor linking for pie binaries is broken
Product: binutils
Version: 2.22
Status: NEW
Severity: normal
Priority: P2
Component: ld