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/i386/include Pull up rev. 1.18 (approved by th...



details:   https://anonhg.NetBSD.org/src/rev/3b28ca79380a
branches:  netbsd-1-5
changeset: 488703:3b28ca79380a
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jul 25 08:22:48 2000 +0000

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

diffstat:

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

diffs (22 lines):

diff -r e50a39f57167 -r 3b28ca79380a sys/arch/i386/include/asm.h
--- a/sys/arch/i386/include/asm.h       Tue Jul 25 08:22:10 2000 +0000
+++ b/sys/arch/i386/include/asm.h       Tue Jul 25 08:22:48 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.17 1999/11/09 02:25:33 marc Exp $    */
+/*     $NetBSD: asm.h,v 1.17.6.1 2000/07/25 08:22:48 kleink Exp $      */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -114,6 +114,12 @@
 
 #define RCSID(x)       .text; .asciz x
 
+#ifdef __ELF__
+#define        WEAK_ALIAS(alias,sym)                                           \
+       .weak alias;                                                    \
+       alias = sym
+#endif
+
 #ifdef __STDC__
 #define        WARN_REFERENCES(sym,msg)                                        \
        .stabs msg ## ,30,0,0,0 ;                                       \



Home | Main Index | Thread Index | Old Index