Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/m68k/include Pull up rev. 1.20 (approved by th...



details:   https://anonhg.NetBSD.org/src/rev/7ceb90c9faab
branches:  netbsd-1-5
changeset: 488704:7ceb90c9faab
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jul 25 08:32:59 2000 +0000

description:
Pull up rev. 1.20 (approved by thorpej):
For ELF, add a WEAK_ALIAS() macro.

diffstat:

 sys/arch/m68k/include/asm.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 3b28ca79380a -r 7ceb90c9faab sys/arch/m68k/include/asm.h
--- a/sys/arch/m68k/include/asm.h       Tue Jul 25 08:22:48 2000 +0000
+++ b/sys/arch/m68k/include/asm.h       Tue Jul 25 08:32:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.19 1999/10/25 23:52:52 thorpej Exp $ */
+/*     $NetBSD: asm.h,v 1.19.6.1 2000/07/25 08:32:59 kleink Exp $      */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -194,6 +194,12 @@
 
 #endif /* _KERNEL */
 
+#ifdef __ELF__
+#define        WEAK_ALIAS(alias,sym)                                           \
+       .weak alias;                                                    \
+       alias = sym
+#endif
+
 #ifdef __STDC__
 #define        __STRING(x)                     #x
 #define        WARN_REFERENCES(sym,msg)                                        \



Home | Main Index | Thread Index | Old Index