[uClibc-cvs] uClibc/libc/sysdeps/linux/sh Makefile,1.20,1.21 crt0.S,1.12,1.13
Erik Andersen
andersen at codepoet.org
Thu Mar 6 13:57:35 UTC 2003
Update of /var/cvs/uClibc/libc/sysdeps/linux/sh
In directory winder:/tmp/cvs-serv27969
Modified Files:
Makefile crt0.S
Log Message:
Patch from Stefan Allius to finish off the last required bits
for gmon profiling support for the SuperH target.
Index: Makefile
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/sh/Makefile,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- Makefile 23 Jan 2003 17:55:25 -0000 1.20
+++ Makefile 6 Mar 2003 13:57:30 -0000 1.21
@@ -24,7 +24,8 @@
SFLAGS= $(CFLAGS) -D__ASSEMBLER__
CRT0_SRC = crt0.S
-CRT0_OBJ = crt0.o crt1.o
+CRT0_OBJ = crt0.o crt1.o gcrt1.o
+CRT0_DEPS=gmon-start.S
SSRC=setjmp.S __longjmp.S vfork.S clone.S
SOBJS=$(patsubst %.S,%.o, $(SSRC))
@@ -54,6 +55,13 @@
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
+
+ifeq ($(strip $(UCLIBC_PROFILING)),y)
+SAFECFLAGS := $(subst -g,,$(CFLAGS))
+gmon-start.S: ../common/gmon-start.c
+ $(CC) $(SAFECFLAGS) -c $< -S -o $*.S
+gcrt1.o: $(CRT0_DEPS)
+endif
headers:
Index: crt0.S
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/sh/crt0.S,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- crt0.S 23 Jan 2003 17:55:25 -0000 1.12
+++ crt0.S 6 Mar 2003 13:57:30 -0000 1.13
@@ -76,7 +76,7 @@
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, at -r15
@@ -113,8 +113,7 @@
rts
nop
-.Lfe1:
- .size _init,.Lfe1-_init
+ .size _init,.-_init
.weak _fini
.set _fini,_init
@@ -128,3 +127,6 @@
L_abort:
.long abort
+#if defined L_gcrt1 && defined __UCLIBC_PROFILING__
+# include "./gmon-start.S"
+#endif
More information about the uClibc-cvs
mailing list