Skip to content

Commit 8725a49

Browse files
committed
[ELF][test] Add test coverage of __real_ to wrap-plt.s
Differential Revision: https://reviews.llvm.org/D84749
1 parent 7518210 commit 8725a49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lld/test/ELF/wrap-plt.s

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
// CHECK: Relocations [
1212
// CHECK-NEXT: Section ({{.*}}) .rela.plt {
1313
// CHECK-NEXT: R_X86_64_JUMP_SLOT __wrap_foo 0x0
14+
// CHECK-NEXT: R_X86_64_JUMP_SLOT foo 0x0
1415
// CHECK-NEXT: R_X86_64_JUMP_SLOT _start 0x0
1516
// CHECK-NEXT: }
1617
// CHECK-NEXT: ]
1718

1819
// DISASM: <_start>:
1920
// DISASM-NEXT: jmp {{.*}} <__wrap_foo@plt>
2021
// DISASM-NEXT: jmp {{.*}} <__wrap_foo@plt>
22+
// DISASM-NEXT: jmp {{.*}} <foo@plt>
2123
// DISASM-NEXT: jmp {{.*}} <_start@plt>
2224

2325
.global foo
@@ -32,4 +34,5 @@ __wrap_foo:
3234
_start:
3335
jmp foo@plt
3436
jmp __wrap_foo@plt
37+
jmp __real_foo@plt
3538
jmp _start@plt

0 commit comments

Comments
 (0)