aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/no-plt-check1b.S
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-i386/no-plt-check1b.S')
-rw-r--r--ld/testsuite/ld-i386/no-plt-check1b.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/ld/testsuite/ld-i386/no-plt-check1b.S b/ld/testsuite/ld-i386/no-plt-check1b.S
index d27ab83..aeee940 100644
--- a/ld/testsuite/ld-i386/no-plt-check1b.S
+++ b/ld/testsuite/ld-i386/no-plt-check1b.S
@@ -8,7 +8,10 @@
check:
subl $12, %esp
call *get_func@GOT
- cmpl func@GOT, %eax
+ movl func@GOT, %edx
+ cmpl %edx, %eax
+ jne .L3
+ cmpl %edx, func_p
jne .L3
call *func@GOT
cmpl $305419896, %eax
@@ -24,5 +27,4 @@ check:
.L3:
call *abort@GOT
.size check, .-check
- .text
.section .note.GNU-stack,"",@progbits