diff options
Diffstat (limited to 'test/ELF/execute-only.s')
| -rw-r--r-- | test/ELF/execute-only.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ELF/execute-only.s b/test/ELF/execute-only.s new file mode 100644 index 000000000000..7a825cb7a188 --- /dev/null +++ b/test/ELF/execute-only.s @@ -0,0 +1,10 @@ +// REQUIRES: aarch64 + +// RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o +// RUN: ld.lld -Ttext=0xcafe0000 %t.o -o %t.so -shared -execute-only +// RUN: llvm-readelf -l %t.so | FileCheck %s + +// CHECK: LOAD {{.*}} 0x00000000cafe0000 0x000004 0x000004 E 0x{{.*}} +// CHECK-NOT: LOAD {{.*}} 0x00000000cafe0000 0x000004 0x000004 R E 0x{{.*}} + + br lr |
