diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-23 16:10:47 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-08-23 16:10:47 +0000 |
commit | af9540f657c6dce187495163f49627c405eeb6f0 (patch) | |
tree | 5c3892dab9430d64fbbc150c5a505aa83933199b /sys/arch/sparc64/include | |
parent | 62744922b971fc2ef6461b0d76a393c7f6045edf (diff) |
weak_alias and warn_references
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/cdefs.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/cdefs.h b/sys/arch/sparc64/include/cdefs.h index d154e140584..5bc7bea1144 100644 --- a/sys/arch/sparc64/include/cdefs.h +++ b/sys/arch/sparc64/include/cdefs.h @@ -1,9 +1,13 @@ -/* $OpenBSD: cdefs.h,v 1.1 2001/08/18 04:16:40 jason Exp $ */ +/* $OpenBSD: cdefs.h,v 1.2 2001/08/23 16:10:46 art Exp $ */ /* $NetBSD: cdefs.h,v 1.3 1999/03/20 01:40:26 thorpej Exp $ */ #ifndef _MACHINE_CDEFS_H_ #define _MACHINE_CDEFS_H_ -/* No arch-specific cdefs. */ +#define __weak_alias(alias,sym) \ + __asm__(".weak " __STRING(alias) " ; " __STRING(alias) " = " __STRING(sym)) +#define __warn_references(sym,msg) \ + __asm__(".section .gnu.warning." __STRING(sym) " ; .ascii \"" msg "\" ; .text") + #endif /* !_MACHINE_CDEFS_H_ */ |