http://sourceware.org/bugzilla/show_bug.cgi?id=12279
Summary: GOLD produces bad executable when mixing TLS and non-TLS symbols Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: i...@airs.com ReportedBy: d.g.gorbac...@gmail.com Host: i686-pc-linux-gnu Target: i686-pc-linux-gnu Build: i686-pc-linux-gnu GNU gold (GNU Binutils 2.21.51.20101123) 1.10 ===== 1.c ===== __thread int n; =============== ===== 2.c ===== extern int n; int main(void) { return n; } =============== $ gcc -c 1.c 2.c $ ld.gold 1.o 2.o $ ./a.out Segmentation fault -- 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 bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils