Define END() to set ELF symbol size.
authoruebayasi <uebayasi@openbsd.org>
Wed, 13 May 2015 05:29:57 +0000 (05:29 +0000)
committeruebayasi <uebayasi@openbsd.org>
Wed, 13 May 2015 05:29:57 +0000 (05:29 +0000)
OK miod@

sys/arch/amd64/include/asm.h

index 880c24f..989f98e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: asm.h,v 1.5 2013/03/28 17:41:03 martynas Exp $        */
+/*     $OpenBSD: asm.h,v 1.6 2015/05/13 05:29:57 uebayasi Exp $        */
 /*     $NetBSD: asm.h,v 1.2 2003/05/02 18:05:47 yamt Exp $     */
 
 /*-
@@ -95,6 +95,7 @@
 #define        ENTRY(y)        _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
 #define        NENTRY(y)       _ENTRY(_C_LABEL(y))
 #define        ASENTRY(y)      _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
+#define        END(y)          .size y, . - y
 
 #define        ASMSTR          .asciz