summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-08-30 10:19:49 +0000
committerguenther <guenther@openbsd.org>2015-08-30 10:19:49 +0000
commitf2d3668a7c9ae7d099ac3aed59c6d3fbcb481e6b (patch)
tree2502b9f3ef9a2cde09da3ddb0b27688f01fffa9e
parentModify kernel to prepare boot from UEFI. (diff)
downloadwireguard-openbsd-f2d3668a7c9ae7d099ac3aed59c6d3fbcb481e6b.tar.xz
wireguard-openbsd-f2d3668a7c9ae7d099ac3aed59c6d3fbcb481e6b.zip
Provide remaining arch with END() macro for setting calculated size on
symbols in ASM ok deraadt@ mpi@
-rw-r--r--sys/arch/arm/include/asm.h3
-rw-r--r--sys/arch/i386/include/asm.h3
-rw-r--r--sys/arch/powerpc/include/asm.h3
-rw-r--r--sys/arch/sparc/include/asm.h3
-rw-r--r--sys/arch/sparc64/include/asm.h3
-rw-r--r--sys/arch/vax/include/asm.h3
6 files changed, 12 insertions, 6 deletions
diff --git a/sys/arch/arm/include/asm.h b/sys/arch/arm/include/asm.h
index 454ad4d735b..07fa1a8b07b 100644
--- a/sys/arch/arm/include/asm.h
+++ b/sys/arch/arm/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.4 2013/03/28 17:41:04 martynas Exp $ */
+/* $OpenBSD: asm.h,v 1.5 2015/08/30 10:19:49 guenther Exp $ */
/* $NetBSD: asm.h,v 1.4 2001/07/16 05:43:32 matt Exp $ */
/*
@@ -88,6 +88,7 @@
#define ENTRY_NP(y) _ENTRY(_C_LABEL(y))
#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
#define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y))
+#define END(y) .size y, . - y
#define ASMSTR .asciz
diff --git a/sys/arch/i386/include/asm.h b/sys/arch/i386/include/asm.h
index 0661dd32886..53dc46f3cdd 100644
--- a/sys/arch/i386/include/asm.h
+++ b/sys/arch/i386/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.13 2013/03/28 17:41:04 martynas Exp $ */
+/* $OpenBSD: asm.h,v 1.14 2015/08/30 10:19:49 guenther Exp $ */
/* $NetBSD: asm.h,v 1.7 1994/10/27 04:15:56 cgd Exp $ */
/*-
@@ -107,6 +107,7 @@
#define NENTRY(y) _ENTRY(_C_LABEL(y))
#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
#define NASENTRY(y) _ENTRY(_ASM_LABEL(y))
+#define END(y) .size y, . - y
#define ALTENTRY(name) .globl _C_LABEL(name); _C_LABEL(name):
diff --git a/sys/arch/powerpc/include/asm.h b/sys/arch/powerpc/include/asm.h
index 564622bf014..9d397259f29 100644
--- a/sys/arch/powerpc/include/asm.h
+++ b/sys/arch/powerpc/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.11 2013/10/17 15:58:23 deraadt Exp $ */
+/* $OpenBSD: asm.h,v 1.12 2015/08/30 10:19:49 guenther Exp $ */
/* $NetBSD: asm.h,v 1.1 1996/09/30 16:34:20 ws Exp $ */
/*
@@ -90,6 +90,7 @@ _TMP_LABEL(y):; \
#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE(y)
#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE(y)
+#define END(y) .size y, . - y
#define ASMSTR .asciz
diff --git a/sys/arch/sparc/include/asm.h b/sys/arch/sparc/include/asm.h
index a25e9292e37..27c94d43dd3 100644
--- a/sys/arch/sparc/include/asm.h
+++ b/sys/arch/sparc/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.7 2013/03/28 17:41:04 martynas Exp $ */
+/* $OpenBSD: asm.h,v 1.8 2015/08/30 10:19:49 guenther Exp $ */
/* $NetBSD: asm.h,v 1.5 1997/07/16 15:16:43 christos Exp $ */
/*
@@ -119,6 +119,7 @@
#define ENTRY(name) _ENTRY(_C_LABEL(name)); _PROF_PROLOGUE
#define ASENTRY(name) _ENTRY(_ASM_LABEL(name)); _PROF_PROLOGUE
#define FUNC(name) ASENTRY(name)
+#define END(y) .size y, . - y
#define ASMSTR .asciz
diff --git a/sys/arch/sparc64/include/asm.h b/sys/arch/sparc64/include/asm.h
index 090125a58c2..c2a65fffbef 100644
--- a/sys/arch/sparc64/include/asm.h
+++ b/sys/arch/sparc64/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.8 2013/03/28 17:41:04 martynas Exp $ */
+/* $OpenBSD: asm.h,v 1.9 2015/08/30 10:19:49 guenther Exp $ */
/* $NetBSD: asm.h,v 1.15 2000/08/02 22:24:39 eeh Exp $ */
/*
@@ -107,6 +107,7 @@
#define NENTRY(name) _ENTRY(_C_LABEL(name))
#define ASENTRY(name) _ENTRY(_ASM_LABEL(name)); _PROF_PROLOGUE
#define FUNC(name) ASENTRY(name)
+#define END(y) .size y, . - y
#define RODATA(name) .align 4; .text; .globl _C_LABEL(name); \
OTYPE(_C_LABEL(name)); _C_LABEL(name):
diff --git a/sys/arch/vax/include/asm.h b/sys/arch/vax/include/asm.h
index 03c373bc340..e7c37872734 100644
--- a/sys/arch/vax/include/asm.h
+++ b/sys/arch/vax/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.12 2013/07/05 21:10:50 miod Exp $ */
+/* $OpenBSD: asm.h,v 1.13 2015/08/30 10:19:49 guenther Exp $ */
/* $NetBSD: asm.h,v 1.9 1999/01/15 13:31:28 bouyer Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -96,6 +96,7 @@
#define ASENTRY_NOPROFILE(x, regs) _ENTRY(_ASM_LABEL(x), regs)
#define ALTENTRY(x) _ALTENTRY(_C_LABEL(x))
+#define END(y) .size y, . - y
#define RCSID(x) .text; .asciz x
#ifdef __ELF__