summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-11-11 20:15:24 +0000
committerguenther <guenther@openbsd.org>2018-11-11 20:15:24 +0000
commit81a5d5c8702040f5e91cada2bc097ca40e7687ce (patch)
tree5603cc98afe213ce0e1aa78a27dd6026f1acc510
parentsync clang on mips64 (diff)
downloadwireguard-openbsd-81a5d5c8702040f5e91cada2bc097ca40e7687ce.tar.xz
wireguard-openbsd-81a5d5c8702040f5e91cada2bc097ca40e7687ce.zip
Add END() macro to set symbol size like every other arch
ok deraadt@
-rw-r--r--sys/arch/sh/include/asm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sh/include/asm.h b/sys/arch/sh/include/asm.h
index 2ed7ce2eb2f..2ab2b3cff9c 100644
--- a/sys/arch/sh/include/asm.h
+++ b/sys/arch/sh/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.7 2017/06/29 17:36:16 deraadt Exp $ */
+/* $OpenBSD: asm.h,v 1.8 2018/11/11 20:15:24 guenther Exp $ */
/* $NetBSD: asm.h,v 1.25 2006/01/20 22:02:40 christos Exp $ */
/*-
@@ -78,6 +78,8 @@
#define NENTRY(y) _ENTRY(_C_LABEL(y))
#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)) _PROF_PROLOGUE
+#define END(y) .size y, . - y
+
#define SET_ENTRY_SIZE(y) \
.size _C_LABEL(y), . - _C_LABEL(y)