Add a STRONG_ALIAS macro

This commit is contained in:
christos 2006-01-20 22:02:40 +00:00
parent 6eaa70365b
commit 3ffa241fcd
14 changed files with 103 additions and 14 deletions

View File

@ -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
@ -617,6 +617,13 @@ label: ASCIZ msg; \
.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.
*/

View File

@ -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) \

View File

@ -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 ; \

View File

@ -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 !\

View File

@ -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) \

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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).
* 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) \

View File

@ -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) \

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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.
@ -102,6 +102,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) \