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:
parent
0751f22675
commit
2549caeff1
|
@ -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>
|
2008-12-06 Adam Nemet <anemet@caviumnetworks.com>
|
||||||
|
|
||||||
* mips/idt32.ld: Set arch to mips:isa32r2 from mips:isa32. Update
|
* mips/idt32.ld: Set arch to mips:isa32r2 from mips:isa32. Update
|
||||||
|
|
|
@ -71,7 +71,7 @@ EVALOBJS = ${OBJS}
|
||||||
GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
|
GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
|
||||||
then echo -L${objroot}/../gcc ; fi`
|
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)
|
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
|
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
|
crt2.o: $(srcdir)/crt0.S
|
||||||
$(CC) $(srcdir)/crt0.S -D_STD_MAIN -c -o crt2.o
|
$(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:
|
doc:
|
||||||
|
|
||||||
clean mostlyclean:
|
clean mostlyclean:
|
||||||
|
|
|
@ -158,6 +158,12 @@ _start:
|
||||||
ila $3, _fini
|
ila $3, _fini
|
||||||
brsl $LR, atexit
|
brsl $LR, atexit
|
||||||
|
|
||||||
|
#ifdef _PROFILE
|
||||||
|
/* Call monstartup if profiling is enabled
|
||||||
|
*/
|
||||||
|
brsl $LR, __monstartup
|
||||||
|
#endif
|
||||||
|
|
||||||
ori $3,$80,0
|
ori $3,$80,0
|
||||||
ori $4,$81,0
|
ori $4,$81,0
|
||||||
#ifndef _STD_MAIN
|
#ifndef _STD_MAIN
|
||||||
|
|
Loading…
Reference in New Issue