artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
170ca6c
)
memmove() entry point is declared with NENTRY() and isn't consecutive
author
guenther
<guenther@openbsd.org>
Thu, 18 May 2023 16:14:05 +0000
(16:14 +0000)
committer
guenther
<guenther@openbsd.org>
Thu, 18 May 2023 16:14:05 +0000
(16:14 +0000)
with an ENTRY(), so it needs its own endbr64 for IBT
ok deraadt@
lib/libc/arch/amd64/string/memmove.S
patch
|
blob
|
history
diff --git
a/lib/libc/arch/amd64/string/memmove.S
b/lib/libc/arch/amd64/string/memmove.S
index
67f2e41
..
2d73e60
100644
(file)
--- a/
lib/libc/arch/amd64/string/memmove.S
+++ b/
lib/libc/arch/amd64/string/memmove.S
@@
-45,6
+45,7
@@
ENTRY_NB(bcopy)
/* fall into memmove */
NENTRY(memmove)
+ endbr64
RETGUARD_SETUP(memmove, r10)
movq %rdi,%r11 /* save dest */
movq %rdx,%rcx