3 ## We allow discarding .dynsym, check we don't crash.
4 # RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o
6 # RUN: echo 'SECTIONS { /DISCARD/ : { *(.dynsym) } }' > %t.lds
7 # RUN: ld.lld -shared -T %t.lds %t.o -o %t.so
8 # RUN: llvm-readelf -r %t.so | FileCheck %s
10 # RUN: echo 'SECTIONS { /DISCARD/ : { *(.dynsym .dynstr) } }' > %t.lds
11 # RUN: ld.lld -shared -T %t.lds %t.o -o %t.so
12 # RUN: llvm-readelf -r %t.so | FileCheck %s
14 # CHECK: contains 2 entries:
15 # CHECK: R_AARCH64_RELATIVE [[#]]
16 # CHECK-NEXT: R_AARCH64_GLOB_DAT 0{{$}}
19 ldr x9
, [x9
, :got_lo12
:var
]