[Bug gold/17699] incorrect R_386_TLS_DTPMOD32 relocation

2014-12-11 Thread timo.teras at iki dot fi
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

[Bug gold/17699] incorrect R_386_TLS_DTPMOD32 relocation

2014-12-11 Thread timo.teras at iki dot fi
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;

[Bug gold/17699] incorrect R_386_TLS_DTPMOD32 relocation

2014-12-11 Thread timo.teras at iki dot fi
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++

[Bug gold/17699] New: incorrect R_386_TLS_DTPMOD32 relocation

2014-12-11 Thread timo.teras at iki dot fi
: 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

[Bug ld/13488] ctor linking for static pie binaries is broken

2011-12-09 Thread timo.teras at iki dot fi
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 -

[Bug ld/13488] ctor linking for static pie binaries is broken

2011-12-09 Thread timo.teras at iki dot fi
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

[Bug ld/13488] New: ctor linking for pie binaries is broken

2011-12-09 Thread timo.teras at iki dot fi
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