xref: /llvm-project/llvm/test/MC/PowerPC/ppc32-R_PPC_DTPREL32-reloc.s (revision f542497182851ea1d8f4689a402238c78c42b40a)
1# RUN: llvm-mc -filetype=obj -triple=ppc %s -o %t
2# RUN: llvm-readelf -r %t | FileCheck %s
3
4# CHECK: Relocation section '.rela.debug_info' at offset {{.*}} contains 1 entries:
5# CHECK-NEXT: Offset     Info    Type                Sym. Value  Symbol's Name + Addend
6# CHECK-NEXT: 00000000  0000014e R_PPC_DTPREL32         00000000   tls_rtp_var + 8000
7
8	.section	.debug_info,"",@progbits
9## Used by DW_OP_form_tls_address and DW_OP_GNU_push_tls_address.
10	.long	tls_rtp_var@DTPREL+32768
11
12	.section	.tdata,"awT",@progbits
13	.globl	tls_rtp_var
14tls_rtp_var:
15	.long	5
16