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.
This commit is contained in:
Jeff Johnston 2008-12-11 12:46:36 +00:00
parent 0751f22675
commit 2549caeff1
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.
2008-12-06 Adam Nemet <anemet@caviumnetworks.com>
* mips/idt32.ld: Set arch to mips:isa32r2 from mips:isa32. Update

View File

@ -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:

View File

@ -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