Module Name:    src
Committed By:   uebayasi
Date:           Fri May 23 02:03:41 UTC 2014

Modified Files:
        src/lib/libc/compat/arch/i386/sys: compat___sigreturn14.S
            compat_sigreturn.S

Log Message:
Define hacked version of END() in addition to ENTRY().


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
    src/lib/libc/compat/arch/i386/sys/compat___sigreturn14.S \
    src/lib/libc/compat/arch/i386/sys/compat_sigreturn.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/compat/arch/i386/sys/compat___sigreturn14.S
diff -u src/lib/libc/compat/arch/i386/sys/compat___sigreturn14.S:1.2 src/lib/libc/compat/arch/i386/sys/compat___sigreturn14.S:1.3
--- src/lib/libc/compat/arch/i386/sys/compat___sigreturn14.S:1.2	Wed Jan 12 23:12:11 2011
+++ src/lib/libc/compat/arch/i386/sys/compat___sigreturn14.S	Fri May 23 02:03:41 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat___sigreturn14.S,v 1.2 2011/01/12 23:12:11 joerg Exp $	*/
+/*	$NetBSD: compat___sigreturn14.S,v 1.3 2014/05/23 02:03:41 uebayasi Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -36,7 +36,7 @@
 
 #include <machine/asm.h>
 #if defined(SYSLIBC_SCCS) && !defined(lint)
-	RCSID("$NetBSD: compat___sigreturn14.S,v 1.2 2011/01/12 23:12:11 joerg Exp $")
+	RCSID("$NetBSD: compat___sigreturn14.S,v 1.3 2014/05/23 02:03:41 uebayasi Exp $")
 #endif /* SYSLIBC_SCCS and not lint */
 
 #include "SYS.h"
@@ -46,6 +46,7 @@
  */
 #ifdef GPROF
 #undef ENTRY
+#undef END
 #ifdef __ELF__
 #define MCOUNT_SYMBOL	__mcount
 #else
@@ -54,6 +55,8 @@
 #define	ENTRY(x) \
 	.globl _ ## x; _ALIGN_TEXT; _ ## x:  pusha ; \
 	.data; 1:; .long 0; .text; movl $1b,%eax; call MCOUNT_SYMBOL; popa ; nop
+#define	END(x) \
+	.size _ ## x, . - _ ## x
 #endif /* GPROF */
 
 PSEUDO(__sigreturn14,compat_16___sigreturn14)
Index: src/lib/libc/compat/arch/i386/sys/compat_sigreturn.S
diff -u src/lib/libc/compat/arch/i386/sys/compat_sigreturn.S:1.2 src/lib/libc/compat/arch/i386/sys/compat_sigreturn.S:1.3
--- src/lib/libc/compat/arch/i386/sys/compat_sigreturn.S:1.2	Wed Jan 12 23:12:11 2011
+++ src/lib/libc/compat/arch/i386/sys/compat_sigreturn.S	Fri May 23 02:03:41 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_sigreturn.S,v 1.2 2011/01/12 23:12:11 joerg Exp $	*/
+/*	$NetBSD: compat_sigreturn.S,v 1.3 2014/05/23 02:03:41 uebayasi Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -36,7 +36,7 @@
 
 #include <machine/asm.h>
 #if defined(SYSLIBC_SCCS) && !defined(lint)
-	RCSID("$NetBSD: compat_sigreturn.S,v 1.2 2011/01/12 23:12:11 joerg Exp $")
+	RCSID("$NetBSD: compat_sigreturn.S,v 1.3 2014/05/23 02:03:41 uebayasi Exp $")
 #endif /* SYSLIBC_SCCS and not lint */
 
 #include "SYS.h"
@@ -46,6 +46,7 @@
  */
 #ifdef GPROF
 #undef ENTRY
+#undef END
 #ifdef __ELF__
 #define MCOUNT_SYMBOL	__mcount
 #else
@@ -54,6 +55,8 @@
 #define	ENTRY(x) \
 	.globl _ ## x; _ALIGN_TEXT; _ ## x:  pusha ; \
 	.data; 1:; .long 0; .text; movl $1b,%eax; call MCOUNT_SYMBOL; popa ; nop
+#define	END(x) \
+	.size _ ## x, . - _ ## x
 #endif /* GPROF */
 
 WARN_REFERENCES(sigreturn, \

Reply via email to