From e9a706a4144834a8e50e8dd371bc796cb4fbc854 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 6 Mar 2003 13:57:31 +0000 Subject: Patch from Stefan Allius to finish off the last required bits for gmon profiling support for the SuperH target. --- libc/sysdeps/linux/sh/crt0.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/sh/crt0.S') diff --git a/libc/sysdeps/linux/sh/crt0.S b/libc/sysdeps/linux/sh/crt0.S index b6a7e117d..64dd3f493 100644 --- a/libc/sysdeps/linux/sh/crt0.S +++ b/libc/sysdeps/linux/sh/crt0.S @@ -76,7 +76,7 @@ _start_end: L_main: .long __uClibc_main /* in libuClibc.*.so */ -#else /* L_crt1 && __UCLIBC_CTOR_DTOR__ */ +#else /* (L_crt1 || L_gcrt1) && __UCLIBC_CTOR_DTOR__ */ /* Push the finip argument to __uClibc_start_main() onto the stack */ mov.l L_fini,r6 mov.l r6,@-r15 @@ -113,8 +113,7 @@ _init: rts nop -.Lfe1: - .size _init,.Lfe1-_init + .size _init,.-_init .weak _fini .set _fini,_init @@ -128,3 +127,6 @@ L_fini: L_abort: .long abort +#if defined L_gcrt1 && defined __UCLIBC_PROFILING__ +# include "./gmon-start.S" +#endif -- cgit v1.2.3