2 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
3 # RUN: ld.lld -shared -o %t.so %t.o -wrap foo
5 # RUN: llvm-readelf --dyn-syms %t.so | FileCheck %s
7 # CHECK: Symbol table '.dynsym' contains 4 entries:
8 # CHECK: NOTYPE LOCAL DEFAULT UND
9 # CHECK-NEXT: NOTYPE WEAK DEFAULT UND foo
10 # CHECK-NEXT: NOTYPE GLOBAL DEFAULT [[#]] __wrap_foo
11 # CHECK-NEXT: NOTYPE GLOBAL DEFAULT [[#]] _start
18 movq __real_foo@gotpcrel
(%rip
), %rax