[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / tls-nobits-offset.s
blob9bfbedab6c78c2b8a6dc1f4214cbe268f1d8fb16
1 # REQUIRES: aarch64
2 # RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o
3 # RUN: ld.lld %t.o -o %t
4 # RUN: llvm-readelf -S -l %t | FileCheck %s
6 ## If a SHT_NOBITS section is the only section of a PT_TLS segment,
7 ## p_offset will be set to the sh_offset field of the section. Check we align
8 ## sh_offset to sh_addr modulo p_align, so that p_vaddr=p_offset (mod
9 ## p_align).
11 # CHECK: Name Type Address Off Size ES Flg Lk Inf Al
12 # CHECK: .tbss NOBITS 0000000000211000 001000 000001 00 WAT 0 0 4096
14 # CHECK: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
15 # CHECK: TLS 0x001000 0x0000000000211000 0x0000000000211000 0x000000 0x000001 R 0x1000
17 # CHECK: 02 .tbss
19 .tbss
20 .p2align 12
21 .byte 0