Announced on https://lists.llvm.org/pipermail/llvm-dev/2020-May/141416.html Similar to D79371, but for `multiclass B` (convenience helper for defining --foo and --no-foo) Some changed options are also used by gold, but I haven't seen their one-dash use cases outside of lld's testsuite.
11 lines
375 B
ArmAsm
11 lines
375 B
ArmAsm
// 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
|