[uClibc-cvs] uClibc/libc/sysdeps/linux/arm Makefile,1.41,1.42 crt0.S,1.19,1.20
Erik Andersen
andersen at codepoet.org
Thu Mar 6 14:16:39 UTC 2003
Update of /var/cvs/uClibc/libc/sysdeps/linux/arm
In directory winder:/tmp/cvs-serv28592
Modified Files:
Makefile crt0.S
Log Message:
Make profiling on arm work
Index: Makefile
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/arm/Makefile,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- Makefile 23 Jan 2003 17:55:16 -0000 1.41
+++ Makefile 6 Mar 2003 14:16:35 -0000 1.42
@@ -21,7 +21,8 @@
ASFLAGS=$(CFLAGS)
CRT0_SRC = crt0.S
-CRT0_OBJ = crt0.o crt1.o
+CRT0_OBJ = crt0.o crt1.o gcrt1.o
+CRT0_DEPS=gmon-start.S
SSRC=__longjmp.S vfork.S clone.S setjmp.S bsd-setjmp.S \
bsd-_setjmp.S sigrestorer.S
@@ -53,7 +54,15 @@
$(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:
+
clean:
rm -f *.[oa] *~ core
Index: crt0.S
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/arm/crt0.S,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- crt0.S 8 Feb 2003 10:12:12 -0000 1.19
+++ crt0.S 6 Mar 2003 14:16:36 -0000 1.20
@@ -92,7 +92,7 @@
ldr r2,[sp, #8]
#endif
-#if defined L_crt1 && defined __UCLIBC_CTOR_DTOR__
+#if (defined L_crt1 || defined L_gcrt1 ) && defined __UCLIBC_CTOR_DTOR__
/* Store the address of _init in r3 as an argument to main() */
ldr r3, =_init
@@ -122,4 +122,8 @@
2: .long 0
.long 2,0,0
3: .align 4
+
+#if defined L_gcrt1 && defined __UCLIBC_PROFILING__
+# include "./gmon-start.S"
+#endif
More information about the uClibc-cvs
mailing list