[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
Tue Jul 28 06:41:31 PDT 2020


andrewng created this revision.
andrewng added reviewers: grimar, ruiu, MaskRay.
Herald added a subscriber: emaste.
Herald added a reviewer: espindola.
andrewng requested review of this revision.

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.281213.patch
Type: text/x-patch
Size: 780 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200728/8df0f865/attachment.bin>


More information about the llvm-commits mailing list