[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / eh-frame-znotext.s
blob38efa23ccc6b516e08276e5adb2e24935000a751
1 # REQUIRES: aarch64
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
20 #--- a.s
21 foo:
22 .cfi_startproc
23 .cfi_personality 0, __gxx_personality_v0
24 ret
25 .cfi_endproc
27 #--- abi.s
28 .globl __gxx_personality_v0
29 .type __gxx_personality_v0, @function
30 __gxx_personality_v0: