gold: x86-64: Fix TLSDESC -> LE relaxation
[deliverable/binutils-gdb.git] / gold / testsuite / x86_64_gd_to_le.s
diff --git a/gold/testsuite/x86_64_gd_to_le.s b/gold/testsuite/x86_64_gd_to_le.s
new file mode 100644 (file)
index 0000000..dcdd303
--- /dev/null
@@ -0,0 +1,24 @@
+       .text
+       .p2align 4
+       .globl  _start
+       .type   _start, @function
+_start:
+       .cfi_startproc
+       subq    $8, %rsp
+       .cfi_def_cfa_offset 16
+       leaq    foo@TLSDESC(%rip), %r9
+       movq    %r9, %rax
+       call    *foo@TLSCALL(%rax)
+       addq    %fs:0, %rax
+       addq    $8, %rsp
+       .cfi_def_cfa_offset 8
+       ret
+       .cfi_endproc
+       .size   _start, .-_start
+       .section        .tdata,"awT",@progbits
+       .align 4
+       .type   foo, @object
+       .size   foo, 4
+foo:
+       .long   30
+       .section        .note.GNU-stack,"",@progbits
This page took 0.024147 seconds and 4 git commands to generate.