clarify the purpose of this project
[nyanglibc.git] / elf / dl-addr-obj.s
blob2dc0ab9432a5e1a8d490779740f22b4263abf523
1 .text
2 .p2align 4,,15
3 .globl _dl_addr_inside_object
4 .type _dl_addr_inside_object, @function
5 _dl_addr_inside_object:
6 movzwl 696(%rdi), %edx
7 subq (%rdi), %rsi
8 leaq 0(,%rdx,8), %rax
9 subq %rdx, %rax
10 leaq -56(,%rax,8), %rax
11 jmp .L2
12 .p2align 4,,10
13 .p2align 3
14 .L3:
15 subq $56, %rax
16 .L2:
17 cmpq $-56, %rax
18 je .L8
19 movq 680(%rdi), %rdx
20 addq %rax, %rdx
21 cmpl $1, (%rdx)
22 jne .L3
23 movq %rsi, %rcx
24 subq 16(%rdx), %rcx
25 cmpq 40(%rdx), %rcx
26 jnb .L3
27 movl $1, %eax
28 ret
29 .p2align 4,,10
30 .p2align 3
31 .L8:
32 xorl %eax, %eax
33 ret
34 .size _dl_addr_inside_object, .-_dl_addr_inside_object