Commit | Line | Data |
---|---|---|
d9aee8d5 L |
1 | .section .rodata.str1.1,"aMS",@progbits,1 |
2 | .LC0: | |
3 | .string "PASS" | |
4 | .text | |
5 | .p2align 4,,15 | |
6 | .globl check | |
7 | .type check, @function | |
8 | check: | |
9 | subq $8, %rsp | |
10 | call *get_func@GOTPCREL(%rip) | |
11 | cmpq func@GOTPCREL(%rip), %rax | |
12 | jne .L3 | |
3a4b0e0f L |
13 | #ifdef __LP64__ |
14 | cmpq %rax, func_p(%rip) | |
15 | #else | |
16 | rex | |
17 | cmpl %eax, func_p(%rip) | |
18 | #endif | |
19 | jne .L3 | |
d9aee8d5 L |
20 | call *func@GOTPCREL(%rip) |
21 | cmpl $305419896, %eax | |
22 | jne .L3 | |
23 | call *call_func@GOTPCREL(%rip) | |
24 | cmpl $305419896, %eax | |
25 | jne .L3 | |
26 | leaq .LC0(%rip), %rdi | |
27 | addq $8, %rsp | |
28 | jmp *puts@GOTPCREL(%rip) | |
29 | .L3: | |
30 | call *abort@GOTPCREL(%rip) | |
31 | .size check, .-check | |
32 | .section .note.GNU-stack,"",@progbits |