http://sourceware.org/bugzilla/show_bug.cgi?id=15280
Bug #: 15280 Summary: tls_script_test failure when built with -O3 Product: binutils Version: 2.24 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: i...@airs.com ReportedBy: amo...@gmail.com CC: ccout...@google.com Classification: Unclassified Found when building x86_64 gold with -O3. The following testcase reproduces the problem using the same sizes and alignments of .tdata and .tbss as my x86_64 gcc produces. Apparently when .tbss is sufficiently aligned, gold sneaks another section in between .tdata and .tbss. cat > tls_test1.s <<\EOF .section .tbss,"waT",@nobits .p2align 4 .space 52 .section .tdata,"waT",@progbits .p2align 4 .space 48 EOF cat > tls_test2.s <<\EOF .section .tbss,"waT",@nobits .p2align 2 .space 8 .section .tdata,"waT",@progbits .p2align 2 .space 4 EOF cat > tls_test3.s <<\EOF .tls_common v7,4,4 .section .got,"wa",@progbits .space 8 EOF gas/as-new -o tls_test1.o tls_test1.s gas/as-new -o tls_test2.o tls_test2.s gas/as-new -o tls_test3.o tls_test3.s gold/ld-new -o tls_test tls_test1.o tls_test2.o tls_test3.o -T /src/binutils-virgin/gold/testsuite/script_test_4.t results in gold/ld-new: error: TLS sections are not adjacent gold/ld-new: internal error in segment_precedes, at /src/binutils-virgin/gold/layout.cc:3183 -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils