Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-12-11 15:46:36 +0300
committerJeff Johnston <jjohnstn@redhat.com>2008-12-11 15:46:36 +0300
commit2549caeff19e3bfbf6405884071bfd1193ae62a5 (patch)
tree30ef63fcff6e8e4dbf7c7bc95573b2c3dd91afb8 /libgloss/spu
parent0751f22675083e9863d2abb58f5c4b4493224000 (diff)
2008-12-11 Ken Werner <ken.werner@de.ibm.com
* spu/crt0.S: Call __monstartup if profiling is enabled. * spu/Makefile.in: Add gcrt1.o gcrt2.o.
Diffstat (limited to 'libgloss/spu')
-rw-r--r--libgloss/spu/Makefile.in8
-rw-r--r--libgloss/spu/crt0.S6
2 files changed, 13 insertions, 1 deletions
diff --git a/libgloss/spu/Makefile.in b/libgloss/spu/Makefile.in
index daa1f150b..6710affcb 100644
--- a/libgloss/spu/Makefile.in
+++ b/libgloss/spu/Makefile.in
@@ -71,7 +71,7 @@ EVALOBJS = ${OBJS}
GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
then echo -L${objroot}/../gcc ; fi`
-CRTOBJS = crti.o crtn.o crt1.o crt2.o
+CRTOBJS = crti.o crtn.o crt1.o crt2.o gcrt1.o gcrt2.o
OUTPUTS = libgloss.a $(CRTOBJS)
NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi` -ffunction-sections -fdata-sections
@@ -133,6 +133,12 @@ crt1.o: $(srcdir)/crt0.S
crt2.o: $(srcdir)/crt0.S
$(CC) $(srcdir)/crt0.S -D_STD_MAIN -c -o crt2.o
+gcrt1.o: $(srcdir)/crt0.S
+ $(CC) $(srcdir)/crt0.S -D_PROFILE -c -o gcrt1.o
+
+gcrt2.o: $(srcdir)/crt0.S
+ $(CC) $(srcdir)/crt0.S -D_PROFILE -D_STD_MAIN -c -o gcrt2.o
+
doc:
clean mostlyclean:
diff --git a/libgloss/spu/crt0.S b/libgloss/spu/crt0.S
index 490f6f91d..39ae588c3 100644
--- a/libgloss/spu/crt0.S
+++ b/libgloss/spu/crt0.S
@@ -158,6 +158,12 @@ _start:
ila $3, _fini
brsl $LR, atexit
+#ifdef _PROFILE
+ /* Call monstartup if profiling is enabled
+ */
+ brsl $LR, __monstartup
+#endif
+
ori $3,$80,0
ori $4,$81,0
#ifndef _STD_MAIN