diff options
author | 1999-02-04 23:30:18 +0000 | |
---|---|---|
committer | 1999-02-04 23:30:18 +0000 | |
commit | b2bb803c94833315de3313bf56eb4ffb193382d6 (patch) | |
tree | 90f9f8fbc7a1ef17cb280be48be87e872065141b | |
parent | Add weak symbol handling (diff) | |
download | wireguard-openbsd-b2bb803c94833315de3313bf56eb4ffb193382d6.tar.xz wireguard-openbsd-b2bb803c94833315de3313bf56eb4ffb193382d6.zip |
implement __weak_alias macro in ECOFF case too
-rw-r--r-- | sys/arch/alpha/include/cdefs.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/alpha/include/cdefs.h b/sys/arch/alpha/include/cdefs.h index 05b289d79c4..034f411bd0c 100644 --- a/sys/arch/alpha/include/cdefs.h +++ b/sys/arch/alpha/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.5 1996/10/30 22:38:56 niklas Exp $ */ +/* $OpenBSD: cdefs.h,v 1.6 1999/02/04 23:30:18 niklas Exp $ */ /* $NetBSD: cdefs.h,v 1.5 1996/10/12 18:08:12 cgd Exp $ */ /* @@ -56,10 +56,14 @@ #else /* !__ELF__ */ /* - * Very little to do if not ELF: we support neither indirect or - * weak references, and don't do anything with warnings. + * We don't support indirect references and don't do anything with warnings. */ +#ifdef __STDC__ +#define __weak_alias(alias,sym) __asm__(".weakext " #alias ", " #sym) +#else /* !__STDC__ */ +#define __weak_alias(alias,sym) __asm__(".weakext alias, sym") +#endif /* !__STDC__ */ #define __warn_references(sym,msg) /* nothing */ #endif /* !__ELF__ */ |