Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/m68k/sys Redefine ENTRY properly for both ELF ...



details:   https://anonhg.NetBSD.org/src/rev/e21370d82d21
branches:  trunk
changeset: 521069:e21370d82d21
user:      aymeric <aymeric%NetBSD.org@localhost>
date:      Tue Jan 22 22:44:43 2002 +0000

description:
Redefine ENTRY properly for both ELF and a.out
Now we can compile profiled m68k programs that use libc.

diffstat:

 lib/libc/arch/m68k/sys/__sigreturn14.S |  8 ++++----
 lib/libc/arch/m68k/sys/sigreturn.S     |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (58 lines):

diff -r f81492cf9d84 -r e21370d82d21 lib/libc/arch/m68k/sys/__sigreturn14.S
--- a/lib/libc/arch/m68k/sys/__sigreturn14.S    Tue Jan 22 21:16:28 2002 +0000
+++ b/lib/libc/arch/m68k/sys/__sigreturn14.S    Tue Jan 22 22:44:43 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __sigreturn14.S,v 1.4 1999/10/25 23:48:16 thorpej Exp $        */
+/*     $NetBSD: __sigreturn14.S,v 1.5 2002/01/22 22:44:43 aymeric Exp $        */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
 #if 0
        RCSID("from: @(#)sigreturn.s    5.1 (Berkeley) 5/12/90")
 #else
-       RCSID("$NetBSD: __sigreturn14.S,v 1.4 1999/10/25 23:48:16 thorpej Exp $")
+       RCSID("$NetBSD: __sigreturn14.S,v 1.5 2002/01/22 22:44:43 aymeric Exp $")
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -53,8 +53,8 @@
 #ifdef GPROF
 #undef ENTRY
 #define        ENTRY(x) \
-       .globl _/**/x; .even; _/**/x:; moveml #0xC0C0,%sp@-; .data; \
-       PROF/**/x:; .long 0; .text; lea PROF/**/x,%a0; jbsr mcount; \
+       .globl _C_LABEL(x); .even; _C_LABEL(x):; moveml #0xC0C0,%sp@-; .data; \
+       PROF/**/x:; .long 0; .text; lea PROF/**/x,%a0; jbsr MCOUNT_ENTRY; \
        moveml %sp@+,#0x0303
 #endif /* GPROF */
 
diff -r f81492cf9d84 -r e21370d82d21 lib/libc/arch/m68k/sys/sigreturn.S
--- a/lib/libc/arch/m68k/sys/sigreturn.S        Tue Jan 22 21:16:28 2002 +0000
+++ b/lib/libc/arch/m68k/sys/sigreturn.S        Tue Jan 22 22:44:43 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigreturn.S,v 1.9 2000/11/28 11:37:20 scw Exp $        */
+/*     $NetBSD: sigreturn.S,v 1.10 2002/01/22 22:44:44 aymeric Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
 #if 0
        RCSID("from: @(#)sigreturn.s    5.1 (Berkeley) 5/12/90")
 #else
-       RCSID("$NetBSD: sigreturn.S,v 1.9 2000/11/28 11:37:20 scw Exp $")
+       RCSID("$NetBSD: sigreturn.S,v 1.10 2002/01/22 22:44:44 aymeric Exp $")
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -53,8 +53,8 @@
 #ifdef GPROF
 #undef ENTRY
 #define        ENTRY(x) \
-       .globl _/**/x; .even; _/**/x:; moveml #0xC0C0,%sp@-; .data; \
-       PROF/**/x:; .long 0; .text; lea PROF/**/x,%a0; jbsr mcount; \
+       .globl _C_LABEL(x); .even; _C_LABEL(x):; moveml #0xC0C0,%sp@-; .data; \
+       PROF/**/x:; .long 0; .text; lea PROF/**/x,%a0; jbsr MCOUNT_ENTRY; \
        moveml %sp@+,#0x0303
 #endif /* GPROF */
 



Home | Main Index | Thread Index | Old Index