diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2023-05-18 16:14:06 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2023-05-18 16:14:06 +0000 |
commit | 62aa9a7092d6d0f08c4c57be4d529873f2550978 (patch) | |
tree | cf2511906e92d854b8c6b4f0d0763b67dc46d651 | |
parent | f5e6397dffc67cfa958ecf2770c919f26135e711 (diff) |
memmove() entry point is declared with NENTRY() and isn't consecutive
with an ENTRY(), so it needs its own endbr64 for IBT
ok deraadt@
-rw-r--r-- | lib/libc/arch/amd64/string/memmove.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/arch/amd64/string/memmove.S b/lib/libc/arch/amd64/string/memmove.S index 67f2e41e7b8..2d73e60e8d5 100644 --- 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 |