2 ## While a symbolic relocation for -z notext in .eh_frame can emit a dynamic
3 ## relocation, we try avoiding that (https://github.com/llvm/llvm-project/issues/60392)
4 ## and use a canonical PLT entry instead.
6 # RUN: rm -rf %t && split-file %s %t && cd %t
7 # RUN: llvm-mc -filetype=obj -triple=aarch64 a.s -o a.o
8 # RUN: llvm-mc -filetype=obj -triple=aarch64 abi.s -o abi.o
9 # RUN: ld.lld -shared abi.o -o abi.so
11 # RUN: ld.lld a.o abi.so -o a
12 # RUN: llvm-readelf -r --dyn-syms a | FileCheck %s
13 # RUN: ld.lld -z notext a.o abi.so -o a
14 # RUN: llvm-readelf -r --dyn-syms a | FileCheck %s
16 # CHECK: R_AARCH64_JUMP_SLOT {{.*}} __gxx_personality_v0 + 0
18 # CHECK: 1: 00000000002{{.*}} 0 FUNC GLOBAL DEFAULT UND __gxx_personality_v0
23 .cfi_personality 0, __gxx_personality_v0
28 .globl __gxx_personality_v0
29 .type __gxx_personality_v0, @function