22 lines · plain
1# REQUIRES: aarch642# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o3# RUN: ld.lld %t.o -o %t4# RUN: llvm-readelf -S -l %t | FileCheck %s5 6## If a SHT_NOBITS section is the only section of a PT_LOAD segment,7## p_offset will be set to the sh_offset field of the section. Check we align8## sh_offset to sh_addr modulo max-page-size, so that p_vaddr=p_offset (mod9## p_align).10 11# CHECK: Name Type Address Off Size ES Flg Lk Inf Al12# CHECK: .bss NOBITS 0000000000221000 001000 000001 00 WA 0 0 409613 14# CHECK: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align15# CHECK: LOAD 0x001000 0x0000000000221000 0x0000000000221000 0x000000 0x000001 RW 0x1000016 17# CHECK: 02 .bss18 19.bss20.p2align 1221.byte 022