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/sh3/include Pull up rev. 1.2 (approved by thor...



details:   https://anonhg.NetBSD.org/src/rev/d54be3616c89
branches:  netbsd-1-5
changeset: 488707:d54be3616c89
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jul 25 08:37:44 2000 +0000

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

diffstat:

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

diffs (22 lines):

diff -r 96a0fdc31a3e -r d54be3616c89 sys/arch/sh3/include/asm.h
--- a/sys/arch/sh3/include/asm.h        Tue Jul 25 08:37:14 2000 +0000
+++ b/sys/arch/sh3/include/asm.h        Tue Jul 25 08:37:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.1 1999/09/13 10:31:14 itojun Exp $   */
+/*     $NetBSD: asm.h,v 1.1.12.1 2000/07/25 08:37:44 kleink Exp $      */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -82,6 +82,12 @@
 
 #define RCSID(x)       .text; .asciz x
 
+#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