repo.or.cz
/
nyanglibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
clarify the purpose of this project
[nyanglibc.git]
/
debug
/
read_chk.s
blob
61e7019ac9d9d9d79acdf7c58e853b64c33eeb23
1
.text
2
.p2align 4,,15
3
.globl __read_chk
4
.type __read_chk, @function
5
__read_chk
:
6
.LFB46:
7
cmpq
%
rcx
, %
rdx
8
ja
.L8
9
xorl
%
eax
, %
eax
10
#APP
11
# 33 "read_chk.c" 1
12
syscall
13
14
# 0 "" 2
15
#NO_APP
16
cmpq $
-
4096
, %
rax
17
ja
.L9
18
rep ret
19
.p2align 4,,10
20
.p2align 3
21
.L9:
22
movq __libc_errno@gottpoff
(%
rip
), %
rdx
23
negl
%
eax
24
movl
%
eax
, %
fs
:(%
rdx
)
25
movq $
-
1
, %
rax
26
ret
27
.L8:
28
subq $
8
, %
rsp
29
call __chk_fail
30
.LFE46:
31
.size __read_chk, .-__read_chk
32
.hidden __chk_fail