31 lines · plain
1# REQUIRES: aarch642## While a symbolic relocation for -z notext in .eh_frame can emit a dynamic3## relocation, we try avoiding that (https://github.com/llvm/llvm-project/issues/60392)4## and use a canonical PLT entry instead.5 6# RUN: rm -rf %t && split-file %s %t && cd %t7# RUN: llvm-mc -filetype=obj -triple=aarch64 a.s -o a.o8# RUN: llvm-mc -filetype=obj -triple=aarch64 abi.s -o abi.o9# RUN: ld.lld -shared abi.o -o abi.so10 11# RUN: ld.lld a.o abi.so -o a12# RUN: llvm-readelf -r --dyn-syms a | FileCheck %s13# RUN: ld.lld -z notext a.o abi.so -o a14# RUN: llvm-readelf -r --dyn-syms a | FileCheck %s15 16# CHECK: R_AARCH64_JUMP_SLOT {{.*}} __gxx_personality_v0 + 017 18# CHECK: 1: 00000000002{{.*}} 0 FUNC GLOBAL DEFAULT UND __gxx_personality_v019 20#--- a.s21foo:22.cfi_startproc23.cfi_personality 0, __gxx_personality_v024 ret25.cfi_endproc26 27#--- abi.s28.globl __gxx_personality_v029.type __gxx_personality_v0, @function30__gxx_personality_v0:31