1 ## Check that llvm-objcopy preserves AArch64 mapping symbols for relocatable files.
2 # RUN: yaml2obj %s -o %t.o -DTYPE=REL
3 # RUN: llvm-objcopy --strip-unneeded %t.o %t1.o
4 # RUN: llvm-nm -j --special-syms %t1.o | FileCheck %s --match-full-lines
5 # RUN: llvm-objcopy --discard-all %t.o %t2.o
6 # RUN: llvm-nm -j --special-syms %t2.o | FileCheck %s --match-full-lines
13 ## A mapping symbol can be deleted if specified explicitly.
14 # RUN: llvm-objcopy -w -N '$d*' %t.o %t3.o
15 # RUN: llvm-nm --special-syms %t3.o | FileCheck /dev/null --implicit-check-not='$d'
17 ## Mapping symbols are not preserved for executable files
18 # RUN: yaml2obj %s -o %t.exec -DTYPE=EXEC
19 # RUN: llvm-objcopy --strip-unneeded %t.exec %t1.exec
20 # RUN: llvm-nm --special-syms %t1.exec | count 0
22 # RUN: yaml2obj %s -o %t.so -DTYPE=DYN
23 # RUN: llvm-objcopy --strip-unneeded %t.so %t1.so
24 # RUN: llvm-nm --special-syms %t1.so | count 0