brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 6d067cf Raw
55 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3// RUN: ld.lld %t.o -o %t14// RUN: llvm-readobj -r %t1 | FileCheck --check-prefix=NORELOC %s5// RUN: llvm-objdump --no-print-imm-hex -d %t1 | FileCheck --check-prefix=DISASM %s6 7// NORELOC:      Relocations [8// NORELOC-NEXT: ]9 10// DISASM:      Disassembly of section .text:11// DISASM-EMPTY:12// DISASM-NEXT: <_start>:13// DISASM-NEXT:   movq $-8, %rax14// DISASM-NEXT:   movq $-8, %r1515// DISASM-NEXT:   leaq -8(%rax), %rax16// DISASM-NEXT:   leaq -8(%r15), %r1517// DISASM-NEXT:   addq $-8, %rsp18// DISASM-NEXT:   addq $-8, %r1219// DISASM-NEXT:   movq $-4, %rax20// DISASM-NEXT:   movq $-4, %r1521// DISASM-NEXT:   leaq -4(%rax), %rax22// DISASM-NEXT:   leaq -4(%r15), %r1523// DISASM-NEXT:   addq $-4, %rsp24// DISASM-NEXT:   addq $-4, %r1225 26.section .tbss,"awT",@nobits27 28.type tls0,@object29.align 430tls0:31 .long 032 .size tls0, 433 34.type  tls1,@object35.align 436tls1:37 .long 038 .size tls1, 439 40.section .text41.globl _start42_start:43 movq tls0@GOTTPOFF(%rip), %rax44 movq tls0@GOTTPOFF(%rip), %r1545 addq tls0@GOTTPOFF(%rip), %rax46 addq tls0@GOTTPOFF(%rip), %r1547 addq tls0@GOTTPOFF(%rip), %rsp48 addq tls0@GOTTPOFF(%rip), %r1249 movq tls1@GOTTPOFF(%rip), %rax50 movq tls1@GOTTPOFF(%rip), %r1551 addq tls1@GOTTPOFF(%rip), %rax52 addq tls1@GOTTPOFF(%rip), %r1553 addq tls1@GOTTPOFF(%rip), %rsp54 addq tls1@GOTTPOFF(%rip), %r1255