[lld] 8725a49 - [ELF][test] Add test coverage of `__real_` to wrap-plt.s
Andrew Ng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 06:12:49 PDT 2020
Author: Andrew Ng
Date: 2020-07-29T14:10:38+01:00
New Revision: 8725a49409c47c25118915c4b3b41bd0d9d32bd7
URL: https://github.com/llvm/llvm-project/commit/8725a49409c47c25118915c4b3b41bd0d9d32bd7
DIFF: https://github.com/llvm/llvm-project/commit/8725a49409c47c25118915c4b3b41bd0d9d32bd7.diff
LOG: [ELF][test] Add test coverage of `__real_` to wrap-plt.s
Differential Revision: https://reviews.llvm.org/D84749
Added:
Modified:
lld/test/ELF/wrap-plt.s
Removed:
################################################################################
diff --git a/lld/test/ELF/wrap-plt.s b/lld/test/ELF/wrap-plt.s
index 2584d6ac09bb..57b417e7b2f0 100644
--- a/lld/test/ELF/wrap-plt.s
+++ b/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 @@ __wrap_foo:
_start:
jmp foo at plt
jmp __wrap_foo at plt
+ jmp __real_foo at plt
jmp _start at plt
More information about the llvm-commits
mailing list