-/* $OpenBSD: asm.h,v 1.14 2017/06/29 17:36:16 deraadt Exp $ */
+/* $OpenBSD: asm.h,v 1.15 2022/08/30 16:26:29 miod Exp $ */
/* $NetBSD: asm.h,v 1.23 2000/06/23 12:18:45 kleink Exp $ */
/*
#define WEAK_ALIAS(alias,sym) \
.weak alias; \
alias = sym
-
-/*
- * WARN_REFERENCES: create a warning if the specified symbol is referenced
- * (ELF only).
- */
-#ifdef __STDC__
-#define WARN_REFERENCES(_sym,_msg) \
- .section .gnu.warning. ## _sym ; .ascii _msg ; .text
-#else
-#define WARN_REFERENCES(_sym,_msg) \
- .section .gnu.warning./**/_sym ; .ascii _msg ; .text
-#endif /* __STDC__ */
-/* $OpenBSD: asm.h,v 1.21 2022/01/01 23:47:14 guenther Exp $ */
+/* $OpenBSD: asm.h,v 1.22 2022/08/30 16:26:29 miod Exp $ */
/* $NetBSD: asm.h,v 1.2 2003/05/02 18:05:47 yamt Exp $ */
/*-
.weak alias; \
alias = sym
-/* XXXfvdl do not use stabs here */
-#ifdef __STDC__
-#define WARN_REFERENCES(sym,msg) \
- .stabs msg ## ,30,0,0,0 ; \
- .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0
-#else
-#define WARN_REFERENCES(sym,msg) \
- .stabs msg,30,0,0,0 ; \
- .stabs __STRING(sym),1,0,0,0
-#endif /* __STDC__ */
-
/* generic retpoline ("return trampoline") generator */
#define JMP_RETPOLINE(reg) \
call 69f ; \
-/* $OpenBSD: asm.h,v 1.11 2022/05/24 17:15:22 guenther Exp $ */
+/* $OpenBSD: asm.h,v 1.12 2022/08/30 16:26:29 miod Exp $ */
/* $NetBSD: asm.h,v 1.4 2001/07/16 05:43:32 matt Exp $ */
/*
.weak alias; \
alias = sym
-#ifdef __STDC__
-#define WARN_REFERENCES(sym,msg) \
- .stabs msg ## ,30,0,0,0 ; \
- .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0
-#else
-#define WARN_REFERENCES(sym,msg) \
- .stabs msg,30,0,0,0 ; \
- .stabs __STRING(_/**/sym),1,0,0,0
-#endif /* __STDC__ */
-
#endif /* !_ARM_ASM_H_ */
-/* $OpenBSD: asm.h,v 1.9 2022/05/24 22:34:02 guenther Exp $ */
+/* $OpenBSD: asm.h,v 1.10 2022/08/30 16:26:29 miod Exp $ */
/* $NetBSD: asm.h,v 1.4 2001/07/16 05:43:32 matt Exp $ */
/*
.weak alias; \
alias = sym
-#ifdef __STDC__
-#define WARN_REFERENCES(sym,msg) \
- .stabs msg ## ,30,0,0,0 ; \
- .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0
-#else
-#define WARN_REFERENCES(sym,msg) \
- .stabs msg,30,0,0,0 ; \
- .stabs __STRING(sym),1,0,0,0
-#endif
-
#endif /* !_MACHINE_ASM_H_ */
-/* $OpenBSD: asm.h,v 1.17 2022/08/27 08:26:15 tb Exp $ */
+/* $OpenBSD: asm.h,v 1.18 2022/08/30 16:26:29 miod Exp $ */
/* $NetBSD: asm.h,v 1.7 1994/10/27 04:15:56 cgd Exp $ */
/*-
.weak alias; \
alias = sym
-/*
- * WARN_REFERENCES: create a warning if the specified symbol is referenced
- */
-#define WARN_REFERENCES(_sym,_msg) \
- .section .gnu.warning. ## _sym ; .ascii _msg ; .text
-
/* let kernels and others override entrypoint alignment */
#ifndef _ALIGN_TEXT
# define _ALIGN_TEXT .align 2, 0x90
-/* $OpenBSD: asm.h,v 1.4 2022/02/24 07:08:21 guenther Exp $ */
+/* $OpenBSD: asm.h,v 1.5 2022/08/30 16:26:29 miod Exp $ */
/*
* Copyright (c) 2020 Brian Bamsch <bbamsch@google.com>
.weak alias; \
alias = sym
-#ifdef __STDC__
-#define WARN_REFERENCES(sym,msg) \
- .stabs msg ## ,30,0,0,0 ; \
- .stabs __STRING(_C_LABEL(sym)) ## ,1,0,0,0
-#else
-#define WARN_REFERENCES(sym,msg) \
- .stabs msg,30,0,0,0 ; \
- .stabs __STRING(sym),1,0,0,0
-#endif
-
#define WEAK_REFERENCE(sym, alias) \
.weak alias; \
.set alias,sym
-/* $OpenBSD: asm.h,v 1.8 2018/11/11 20:15:24 guenther Exp $ */
+/* $OpenBSD: asm.h,v 1.9 2022/08/30 16:26:29 miod Exp $ */
/* $NetBSD: asm.h,v 1.25 2006/01/20 22:02:40 christos Exp $ */
/*-
.weak _C_LABEL(alias); \
_C_LABEL(alias) = _C_LABEL(sym)
-#define WARN_REFERENCES(_sym,_msg) \
- .section .gnu.warning._sym; .ascii _msg; .previous
-
#endif /* !_SH_ASM_H_ */
-/* $OpenBSD: asm.h,v 1.14 2022/01/01 23:47:14 guenther Exp $ */
+/* $OpenBSD: asm.h,v 1.15 2022/08/30 16:26:29 miod Exp $ */
/* $NetBSD: asm.h,v 1.15 2000/08/02 22:24:39 eeh Exp $ */
/*
.weak alias; \
alias = sym
-/*
- * WARN_REFERENCES: create a warning if the specified symbol is referenced.
- */
-#ifdef __STDC__
-#define WARN_REFERENCES(_sym,_msg) \
- .section .gnu.warning. ## _sym ; .ascii _msg ; .text
-#else
-#define WARN_REFERENCES(_sym,_msg) \
- .section .gnu.warning./**/_sym ; .ascii _msg ; .text
-#endif /* __STDC__ */
-
#endif /* _MACHINE_ASM_H_ */