bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/17843] New: GAS 2.24.0 incorrectly rejects a legal asm seq


From: geir at cray dot com
Subject: [Bug binutils/17843] New: GAS 2.24.0 incorrectly rejects a legal asm sequence
Date: Wed, 14 Jan 2015 20:03:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17843

            Bug ID: 17843
           Summary: GAS 2.24.0 incorrectly rejects a legal asm sequence
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: geir at cray dot com

GAS 2.24.0 incorrectly rejects a legal asm sequence:


$ cat test_tls.c
__thread int tls_var;
int get_tls_var() {
    return tls_var;
}

$ clang --target=aarch64 -S test_tls.c

$ cat test_tls.s
    .text
    .file    "test_tls.c"
    .globl    get_tls_var
    .align    2
    .type    get_tls_var,@function
get_tls_var:                            // @get_tls_var
// BB#0:                                // %entry
    movz    x8, #:tprel_g1:tls_var
    movk    x8, #:tprel_g0_nc:tls_var
    mrs    x9, TPIDR_EL0
    ldr     w10, [x9, x8]
    mov     w0, w10
    ret
.Ltmp1:
    .size    get_tls_var, .Ltmp1-get_tls_var

    .type    tls_var,@object         // @tls_var
    .section    .tbss,"awT",@nobits
    .globl    tls_var
    .align    2
tls_var:
    .word    0                       // 0x0
    .size    tls_var, 4


    .ident    "clang version 3.5.0 (tags/RELEASE_350/final)"

$ aarch64-linux-gnu-as test_tls.s
test_tls.s: Assembler messages:
test_tls.s:9: Error: the specified relocation type is not allowed for MOVK at
operand 2 -- `movk x8,#:tprel_g0_nc:tls_var'
$

-- 
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]