diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-08-31 04:53:37 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-08-31 04:53:37 +0000 |
commit | 8b6bd1a97088c59ffc3b0ba4f47f35fb1df2d092 (patch) | |
tree | 2b8c0dfac998c084c37c8a006074a8dae923a440 /lib/libc/arch/hppa | |
parent | 118373f45f6c1fc02f667503fecb8092f8f1aaa5 (diff) |
Add ALTEXIT_{STRONG,WEAK} to support wrapping of functions using ALTENTRY.
Fix memmove with that
ok deraadt@
Diffstat (limited to 'lib/libc/arch/hppa')
-rw-r--r-- | lib/libc/arch/hppa/SYS.h | 8 | ||||
-rw-r--r-- | lib/libc/arch/hppa/string/memmove.S | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/arch/hppa/SYS.h b/lib/libc/arch/hppa/SYS.h index b07287224b2..60767c1014d 100644 --- a/lib/libc/arch/hppa/SYS.h +++ b/lib/libc/arch/hppa/SYS.h @@ -1,4 +1,4 @@ -/* $OpenBSD: SYS.h,v 1.18 2015/08/31 02:53:56 guenther Exp $ */ +/* $OpenBSD: SYS.h,v 1.19 2015/08/31 04:53:36 guenther Exp $ */ /* * Copyright (c) 1998-2002 Michael Shalayeff @@ -52,9 +52,13 @@ * EXIT_STRONG(x) Like DEF_STRONG() in C; for standard/reserved C names * EXIT_WEAK(x) Like DEF_WEAK() in C; for non-ISO C names */ -#define EXIT_STRONG(x) EXIT(x) !\ +#define ALTEXIT_STRONG(x) \ _HIDDEN_FALIAS(x,x) !\ .size _HIDDEN(x), . - _HIDDEN(x) +#define ALTEXIT_WEAK(x) ALTEXIT_STRONG(x) !\ + .weak x +#define EXIT_STRONG(x) EXIT(x) !\ + ALTEXIT_STRONG(x) #define EXIT_WEAK(x) EXIT_STRONG(x) !\ .weak x diff --git a/lib/libc/arch/hppa/string/memmove.S b/lib/libc/arch/hppa/string/memmove.S index 4b14de65110..2bbe3045b6d 100644 --- a/lib/libc/arch/hppa/string/memmove.S +++ b/lib/libc/arch/hppa/string/memmove.S @@ -152,5 +152,6 @@ $bcopy_r.done bv 0(rp) nop EXIT_WEAK(bcopy) +ALTEXIT_STRONG(memmove) .end |