diff options
Diffstat (limited to 'test/ELF/aarch64-relro.s')
-rw-r--r-- | test/ELF/aarch64-relro.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ELF/aarch64-relro.s b/test/ELF/aarch64-relro.s new file mode 100644 index 000000000000..3ec19d73d683 --- /dev/null +++ b/test/ELF/aarch64-relro.s @@ -0,0 +1,14 @@ +# REQUIRES: aarch64 +# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t +# RUN: ld.lld %t -o %t2 +# RUN: llvm-readobj -program-headers %t2 | FileCheck %s + +# CHECK: Type: PT_GNU_RELRO +# CHECK-NEXT: Offset: +# CHECK-NEXT: VirtualAddress: +# CHECK-NEXT: PhysicalAddress: +# CHECK-NEXT: FileSize: +# CHECK-NEXT: MemSize: 4096 + +.section .data.rel.ro,"aw",%progbits +.byte 1 |