[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/15280] New: tls_script_test failure when built with -O3

From: amodra at gmail dot com
Subject: [Bug gold/15280] New: tls_script_test failure when built with -O3
Date: Fri, 15 Mar 2013 11:20:00 +0000


             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: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden
    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
cat > tls_test2.s <<\EOF
 .section .tbss,"waT",@nobits
 .p2align 2
 .space 8

 .section .tdata,"waT",@progbits
 .p2align 2
 .space 4
cat > tls_test3.s <<\EOF
 .tls_common v7,4,4

 .section .got,"wa",@progbits
 .space 8
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

results in
gold/ld-new: error: TLS sections are not adjacent
gold/ld-new: internal error in segment_precedes, at

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]