36 lines · plain
1// REQUIRES: arm2// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1.o3// RUN: ld.lld %t1.o --shared -soname=t1.so -o %t1.so4// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi5// RUN: ld.lld %t1.so %t.o -o %t6// RUN: llvm-objdump -s %t | FileCheck %s7 8 .global __tls_get_addr9 .text10 .p2align 211 .global _start12 .syntax unified13 .arm14 .type _start, %function15_start:16.L0:17 bl __tls_get_addr18 19 .word x(tlsldm) + (. - .L0 - 8)20 .word x(tlsldo)21 .word y(tlsldo)22 23 .section .tbss,"awT",%nobits24 .p2align 225 .type y, %object26y:27 .space 428 .section .tdata,"awT",%progbits29 .p2align 230 .type x, %object31x:32 .word 1033 34// CHECK: Contents of section .got:35// CHECK-NEXT: 3027c 01000000 0000000036