summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2018-11-11 20:15:25 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2018-11-11 20:15:25 +0000
commit0ac886758cba8bf5fc7e41a95b7e72afe2fdb950 (patch)
treea3acf4f07fbe1cb3e45c72c17ecaf4eeb7d38eff
parent3aa912d7f06ff72713ae4b177856f38a8cd86918 (diff)
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)