xref: /llvm-project/lld/test/ELF/execute-only.s (revision e36223c85cd49858a808a2420144b64cad37839f)
1// REQUIRES: aarch64
2
3// RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o
4// RUN: ld.lld -Ttext=0xcafe0000 %t.o -o %t.so -shared --execute-only
5// RUN: llvm-readelf -l %t.so | FileCheck %s
6
7// CHECK:      LOAD {{.*}} 0x00000000cafe0000 0x000004 0x000004   E 0x{{.*}}
8// CHECK-NOT:  LOAD {{.*}} 0x00000000cafe0000 0x000004 0x000004 R E 0x{{.*}}
9
10        br lr
11