summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/crt0.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-06 13:57:31 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-06 13:57:31 +0000
commite9a706a4144834a8e50e8dd371bc796cb4fbc854 (patch)
treef3dd87e8a5b08b7f3d7b14ec97cfe358b1ac2a0c /libc/sysdeps/linux/sh/crt0.S
parent6b71d0a8c5ede7396948ed05357def5d00e55cec (diff)
Patch from Stefan Allius to finish off the last required bits
for gmon profiling support for the SuperH target.
Diffstat (limited to 'libc/sysdeps/linux/sh/crt0.S')
-rw-r--r--libc/sysdeps/linux/sh/crt0.S8
1 files changed, 5 insertions, 3 deletions
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