[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / wrap-weak.s
blobb853eaa909dc88a14aba0320e5c9dd8f86be6a5d
1 # REQUIRES: x86
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
13 .global foo
14 .weak __real_foo
16 .global __wrap_foo
17 __wrap_foo:
18 movq __real_foo@gotpcrel(%rip), %rax
19 call __real_foo@plt
21 .global _start
22 _start:
23 call foo@plt