[PATCH] D84749: [ELF][test] Add test coverage of `__real_` to wrap-plt.s

Andrew Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 06:12:50 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8725a49409c4: [ELF][test] Add test coverage of `__real_` to wrap-plt.s (authored by andrewng).
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84749/new/

https://reviews.llvm.org/D84749

Files:
  lld/test/ELF/wrap-plt.s


Index: lld/test/ELF/wrap-plt.s
===================================================================
--- lld/test/ELF/wrap-plt.s
+++ lld/test/ELF/wrap-plt.s
@@ -11,6 +11,7 @@
 // CHECK:      Relocations [
 // CHECK-NEXT:   Section ({{.*}}) .rela.plt {
 // CHECK-NEXT:     R_X86_64_JUMP_SLOT __wrap_foo 0x0
+// CHECK-NEXT:     R_X86_64_JUMP_SLOT foo 0x0
 // CHECK-NEXT:     R_X86_64_JUMP_SLOT _start 0x0
 // CHECK-NEXT:   }
 // CHECK-NEXT: ]
@@ -18,6 +19,7 @@
 // DISASM:      <_start>:
 // DISASM-NEXT:   jmp {{.*}} <__wrap_foo at plt>
 // DISASM-NEXT:   jmp {{.*}} <__wrap_foo at plt>
+// DISASM-NEXT:   jmp {{.*}} <foo at plt>
 // DISASM-NEXT:   jmp {{.*}} <_start at plt>
 
 .global foo
@@ -32,4 +34,5 @@
 _start:
   jmp foo at plt
   jmp __wrap_foo at plt
+  jmp __real_foo at plt
   jmp _start at plt


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84749.281547.patch
Type: text/x-patch
Size: 780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200729/1ffaf73d/attachment.bin>


More information about the llvm-commits mailing list