42 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 --triple=armv7a-linux-gnueabi %t | FileCheck %s7 8/// This tls Initial Exec sequence is with respect to a non-preemptible symbol9/// so a relaxation would normally be possible. This would result in an assertion10/// failure on ARM as the relaxation functions can't be implemented on ARM.11/// Check that the sequence is handled as initial exec12 .text13 .syntax unified14 .globl func15 .p2align 216 .type func,%function17func:18.L0:19 .globl __tls_get_addr20 bl __tls_get_addr21.L1:22 bx lr23 .p2align 224 .Lt0: .word x1(gottpoff) + (. - .L0 - 8)25 .Lt1: .word x2(gottpoff) + (. - .L1 - 8)26 27 .globl x128 .section .trw,"awT",%progbits29 .p2align 230x1:31 .word 0x132 .globl x233 .section .tbss,"awT",%nobits34 .type x1, %object35x2:36 .space 437 .type x2, %object38 39// CHECK: Contents of section .got:40/// x1 at offset 8 from TP, x2 at offset 0xc from TP. Offsets include TCB size of 841// CHECK-NEXT: 3027c 08000000 0c00000042