Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add a __weak_extern() macro.
details: https://anonhg.NetBSD.org/src/rev/ea91a711d323
branches: trunk
changeset: 472569:ea91a711d323
user: kleink <kleink%NetBSD.org@localhost>
date: Sun May 02 18:23:57 1999 +0000
description:
Add a __weak_extern() macro.
diffstat:
sys/sys/cdefs_elf.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 23ab73ba7d36 -r ea91a711d323 sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h Sun May 02 18:12:32 1999 +0000
+++ b/sys/sys/cdefs_elf.h Sun May 02 18:23:57 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs_elf.h,v 1.2 1999/03/23 18:28:12 thorpej Exp $ */
+/* $NetBSD: cdefs_elf.h,v 1.3 1999/05/02 18:23:57 kleink Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -44,6 +44,8 @@
#define __weak_alias(alias,sym) \
__asm__(".weak " #alias " ; " #alias " = " #sym);
#endif /* !__DO_NOT_DO_WEAK__ */
+#define __weak_extern(sym) \
+ __asm__(".weak " #sym);
#define __warn_references(sym,msg) \
__asm__(".section .gnu.warning." #sym " ; .ascii \"" msg "\" ; .text");
@@ -53,6 +55,8 @@
#define __weak_alias(alias,sym) \
__asm__(".weak alias ; alias = sym");
#endif /* !__DO_NOT_DO_WEAK__ */
+#define __weak_extern(sym) \
+ __asm__(".weak sym");
#define __warn_references(sym,msg) \
__asm__(".section .gnu.warning.sym ; .ascii msg ; .text");
Home |
Main Index |
Thread Index |
Old Index