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/powerpc/include Pull up rev. 1.7 (approved by ...



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

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

diffstat:

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

diffs (22 lines):

diff -r 030fb0e770c0 -r 96a0fdc31a3e sys/arch/powerpc/include/asm.h
--- a/sys/arch/powerpc/include/asm.h    Tue Jul 25 08:33:48 2000 +0000
+++ b/sys/arch/powerpc/include/asm.h    Tue Jul 25 08:37:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.6 1999/03/05 07:59:13 tsubai Exp $   */
+/*     $NetBSD: asm.h,v 1.6.18.1 2000/07/25 08:37:14 kleink Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -76,6 +76,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)                              \
        .section .gnu.warning. ## _sym ; .ascii _msg ; .text



Home | Main Index | Thread Index | Old Index