brintos

brintos / llvm-project-archived public Read only

0
0
Text · 584 B · b853eaa Raw
24 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3# RUN: ld.lld -shared -o %t.so %t.o -wrap foo4 5# RUN: llvm-readelf --dyn-syms %t.so | FileCheck %s6 7# CHECK:      Symbol table '.dynsym' contains 4 entries:8# CHECK:      NOTYPE  LOCAL  DEFAULT   UND9# CHECK-NEXT: NOTYPE  WEAK   DEFAULT   UND foo10# CHECK-NEXT: NOTYPE  GLOBAL DEFAULT [[#]] __wrap_foo11# CHECK-NEXT: NOTYPE  GLOBAL DEFAULT [[#]] _start12 13.global foo14.weak __real_foo15 16.global __wrap_foo17__wrap_foo:18  movq __real_foo@gotpcrel(%rip), %rax19  call __real_foo@plt20 21.global _start22_start:23  call foo@plt24