Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Add a STRONG_ALIAS macro



details:   https://anonhg.NetBSD.org/src/rev/c7f5a161ad8b
branches:  trunk
changeset: 587334:c7f5a161ad8b
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 20 22:02:40 2006 +0000

description:
Add a STRONG_ALIAS macro

diffstat:

 sys/arch/alpha/include/asm.h   |  9 ++++++++-
 sys/arch/amd64/include/asm.h   |  9 ++++++++-
 sys/arch/arm/include/asm.h     |  9 ++++++++-
 sys/arch/hppa/include/asm.h    |  9 ++++++++-
 sys/arch/i386/include/asm.h    |  8 +++++++-
 sys/arch/m68k/include/asm.h    |  8 +++++++-
 sys/arch/mips/include/asm.h    |  8 +++++++-
 sys/arch/pc532/include/asm.h   |  8 +++++++-
 sys/arch/pdp10/include/asm.h   |  8 +++++++-
 sys/arch/powerpc/include/asm.h |  8 +++++++-
 sys/arch/sh3/include/asm.h     |  9 ++++++++-
 sys/arch/sh5/include/asm.h     |  8 +++++++-
 sys/arch/sparc/include/asm.h   |  8 +++++++-
 sys/arch/vax/include/asm.h     |  8 +++++++-
 14 files changed, 103 insertions(+), 14 deletions(-)

diffs (truncated from 313 to 300 lines):

diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/alpha/include/asm.h
--- a/sys/arch/alpha/include/asm.h      Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/alpha/include/asm.h      Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.28 2005/12/11 12:16:16 christos Exp $ */
+/* $NetBSD: asm.h,v 1.29 2006/01/20 22:02:40 christos Exp $ */
 
 /* 
  * Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
@@ -618,6 +618,13 @@
        alias = sym
 
 /*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                        \
+       .globl alias;                                           \
+       alias = sym
+
+/*
  * WARN_REFERENCES: create a warning if the specified symbol is referenced.
  */
 #ifdef __STDC__
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/amd64/include/asm.h
--- a/sys/arch/amd64/include/asm.h      Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/amd64/include/asm.h      Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.4 2005/12/11 12:16:25 christos Exp $ */
+/*     $NetBSD: asm.h,v 1.5 2006/01/20 22:02:40 christos Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -103,6 +103,13 @@
        .weak alias;                                                    \
        alias = sym
 
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl alias;                                                   \
+       alias = sym
+
 /* XXXfvdl do not use stabs here */
 #ifdef __STDC__
 #define        WARN_REFERENCES(sym,msg)                                        \
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/arm/include/asm.h
--- a/sys/arch/arm/include/asm.h        Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/arm/include/asm.h        Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.7 2005/12/11 12:16:46 christos Exp $ */
+/*     $NetBSD: asm.h,v 1.8 2006/01/20 22:02:40 christos Exp $ */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -112,6 +112,13 @@
        alias = sym
 #endif
 
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl alias;                                                   \
+       alias = sym
+
 #ifdef __STDC__
 #define        WARN_REFERENCES(sym,msg)                                        \
        .stabs msg ## ,30,0,0,0 ;                                       \
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/hppa/include/asm.h
--- a/sys/arch/hppa/include/asm.h       Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/hppa/include/asm.h       Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.5 2005/12/11 12:17:37 christos Exp $ */
+/*     $NetBSD: asm.h,v 1.6 2006/01/20 22:02:40 christos Exp $ */
 
 /*     $OpenBSD: asm.h,v 1.12 2001/03/29 02:15:57 mickey Exp $ */
 
@@ -74,6 +74,13 @@
        .weak alias !                                   \
        alias = sym
 
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                \
+       .globl alias !                                  \
+       alias = sym
+
 #define CALL(func,tmp)                                 !\
        ldil    L%func, tmp                             !\
        ldo     R%func(tmp), tmp                        !\
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/i386/include/asm.h
--- a/sys/arch/i386/include/asm.h       Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/i386/include/asm.h       Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.29 2005/12/11 12:17:43 christos Exp $        */
+/*     $NetBSD: asm.h,v 1.30 2006/01/20 22:02:40 christos Exp $        */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -182,6 +182,12 @@
        .weak alias;                                                    \
        alias = sym
 #endif
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl alias;                                                   \
+       alias = sym
 
 #ifdef __STDC__
 #define        WARN_REFERENCES(sym,msg)                                        \
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/m68k/include/asm.h
--- a/sys/arch/m68k/include/asm.h       Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/m68k/include/asm.h       Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.23 2001/05/27 01:01:08 chs Exp $     */
+/*     $NetBSD: asm.h,v 1.24 2006/01/20 22:02:40 christos Exp $        */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -205,6 +205,12 @@
        .weak alias;                                                    \
        alias = sym
 #endif
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl alias;                                                   \
+       alias = sym
 
 #ifdef __STDC__
 #define        __STRING(x)                     #x
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/mips/include/asm.h
--- a/sys/arch/mips/include/asm.h       Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/mips/include/asm.h       Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.36 2005/12/11 12:18:09 christos Exp $        */
+/*     $NetBSD: asm.h,v 1.37 2006/01/20 22:02:40 christos Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -107,6 +107,12 @@
 #define        WEAK_ALIAS(alias,sym)                                           \
        .weak alias;                                                    \
        alias = sym
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl alias;                                                   \
+       alias = sym
 
 /*
  * WARN_REFERENCES: create a warning if the specified symbol is referenced.
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/pc532/include/asm.h
--- a/sys/arch/pc532/include/asm.h      Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/pc532/include/asm.h      Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.18 2005/12/11 12:18:31 christos Exp $        */
+/*     $NetBSD: asm.h,v 1.19 2006/01/20 22:02:40 christos Exp $        */
 
 /*
  * Mach Operating System
@@ -218,6 +218,12 @@
 #define        WEAK_ALIAS(alias,sym)                                           \
        .weak _C_LABEL(alias);                                          \
        _C_LABEL(alias) = _C_LABEL(sym)
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl _C_LABEL(alias);                                         \
+       _C_LABEL(alias) = _C_LABEL(sym)
 
 #ifdef __STDC__
 #define        __STRING(x)                     #x
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/pdp10/include/asm.h
--- a/sys/arch/pdp10/include/asm.h      Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/pdp10/include/asm.h      Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.2 2005/12/11 12:18:34 christos Exp $ */
+/*     $NetBSD: asm.h,v 1.3 2006/01/20 22:02:40 christos Exp $ */
 /*
  * Copyright (c) 2003 Anders Magnusson (ragge%ludd.luth.se@localhost).
  * All rights reserved.
@@ -83,6 +83,12 @@
 #ifdef __ELF__
 #define        WEAK_ALIAS(alias,sym) .weak alias ;  alias = sym
 #endif
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl alias;                                                   \
+       alias = sym
 
 #ifdef __STDC__
 #define        WARN_REFERENCES(sym,msg)                                        \
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/powerpc/include/asm.h
--- a/sys/arch/powerpc/include/asm.h    Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/powerpc/include/asm.h    Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.18 2005/12/11 12:18:43 christos Exp $        */
+/*     $NetBSD: asm.h,v 1.19 2006/01/20 22:02:40 christos Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -83,6 +83,12 @@
        .weak alias;                                                    \
        alias = sym
 #endif
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl alias;                                                   \
+       alias = sym
 
 #ifdef __STDC__
 #define        WARN_REFERENCES(_sym,_msg)                              \
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/sh3/include/asm.h
--- a/sys/arch/sh3/include/asm.h        Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/sh3/include/asm.h        Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.24 2006/01/06 22:27:53 uwe Exp $     */
+/*     $NetBSD: asm.h,v 1.25 2006/01/20 22:02:40 christos Exp $        */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -220,6 +220,13 @@
        _C_LABEL(alias) = _C_LABEL(sym)
 #endif
 
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl _C_LABEL(alias);                                         \
+       _C_LABEL(alias) = _C_LABEL(sym)
+
 #define        WARN_REFERENCES(_sym,_msg)                              \
        .section .gnu.warning._sym; .ascii _msg; .previous
 
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/sh5/include/asm.h
--- a/sys/arch/sh5/include/asm.h        Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/sh5/include/asm.h        Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.11 2005/12/11 12:19:00 christos Exp $        */
+/*     $NetBSD: asm.h,v 1.12 2006/01/20 22:02:40 christos Exp $        */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -185,6 +185,12 @@
 #define        WEAK_ALIAS(alias,sym)                                           \
        .weak _C_LABEL(alias);                                          \
        _C_LABEL(alias) = _C_LABEL(sym)
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl _C_LABEL(alias);                                         \
+       _C_LABEL(alias) = _C_LABEL(sym)
 
 #ifdef __STDC__
 #define        __STRING(x)                     #x
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/sparc/include/asm.h
--- a/sys/arch/sparc/include/asm.h      Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/sparc/include/asm.h      Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.15 2002/09/17 15:28:28 uwe Exp $ */
+/*     $NetBSD: asm.h,v 1.16 2006/01/20 22:02:40 christos Exp $ */
 
 /*
  * Copyright (c) 1994 Allen Briggs
@@ -173,6 +173,12 @@
        .weak alias;                                                    \
        alias = sym
 #endif
+/*
+ * STRONG_ALIAS: create a strong alias.
+ */
+#define STRONG_ALIAS(alias,sym)                                                \
+       .globl alias;                                                   \
+       alias = sym
 
 /*
  * WARN_REFERENCES: create a warning if the specified symbol is referenced.
diff -r 9ae3cf94148f -r c7f5a161ad8b sys/arch/vax/include/asm.h
--- a/sys/arch/vax/include/asm.h        Fri Jan 20 22:02:07 2006 +0000
+++ b/sys/arch/vax/include/asm.h        Fri Jan 20 22:02:40 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.17 2005/12/11 12:19:34 christos Exp $ */
+/*     $NetBSD: asm.h,v 1.18 2006/01/20 22:02:41 christos Exp $ */
 /*
  * Copyright (c) 1982, 1993
  *     The Regents of the University of California.  All rights reserved.



Home | Main Index | Thread Index | Old Index