diff options
Diffstat (limited to 'lib/libc/arch/amd64/string/strcmp.S')
-rw-r--r-- | lib/libc/arch/amd64/string/strcmp.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/arch/amd64/string/strcmp.S b/lib/libc/arch/amd64/string/strcmp.S index 11df374cc70..ab5964d1ff1 100644 --- a/lib/libc/arch/amd64/string/strcmp.S +++ b/lib/libc/arch/amd64/string/strcmp.S @@ -1,4 +1,4 @@ -/* $OpenBSD: strcmp.S,v 1.7 2015/11/14 21:53:03 guenther Exp $ */ +/* $OpenBSD: strcmp.S,v 1.8 2018/07/03 23:14:05 mortimer Exp $ */ /* $NetBSD: strcmp.S,v 1.2 2014/03/22 19:16:34 jakllsch Exp $ */ /* @@ -9,6 +9,7 @@ #include "DEFS.h" ENTRY(strcmp) + RETGUARD_SETUP(strcmp, r11) /* * Align s1 to word boundary. * Consider unrolling loop? @@ -68,5 +69,6 @@ ENTRY(strcmp) movzbq %al,%rax movzbq %dl,%rdx subq %rdx,%rax + RETGUARD_CHECK(strcmp, r11) ret END_STRONG(strcmp) |