* A problem about gprof
@ 2003-01-27 14:27 ZhouY.external
2003-01-28 6:58 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: ZhouY.external @ 2003-01-27 14:27 UTC (permalink / raw)
To: linux-mips
Hi dear experts,
In order to use the gprof in the SDE 5.02 toolchain, I compiled a program
with '-p' option but the compiler responsed with a error. I have checked the
startup assembly code crt0.sx. There is an address operation which need the
address of '_ecode'. Which library has the symbol '_ecode'? Could you give
me a clue?
Thanks in advance!
Best regards,
Yidan
PS. The following is the error messge:
sde-gcc -O -g -mcpu=4kc -mips32 -EB -mno-float -DGNUSIM -D__SIM
'-Afloat(no)'
-I../../kit/GSIM32B/../gnusim -c -DMCRT0 ../../kit/share/crt0.sx -o
mcrt0
.o
sde-gcc -g -p -mcpu=4kc -mips32 -EB -mno-float -DGNUSIM -D__SIM
'-Afloat(no)'
-I../../kit/GSIM32B/../gnusim -c hello.c -o hello.o
sde-make[1]: Entering directory `/cygdrive/c/sde/sde/kit/GSIM32B'
sde-make[1]: Nothing to be done for `kit'.
sde-make[1]: Leaving directory `/cygdrive/c/sde/sde/kit/GSIM32B'
sde-gcc -mcpu=4kc -mips32 -EB -mno-float -Ttext 80000400
-L../../kit/GSIM32B
../../kit/GSIM32B/ramstart.o mcrt0.o hello.o -lc -lram -lgcc -lc -le
-lram -l
c -lgcc ../../kit/GSIM32B/crtn.o -o ex1ram
mcrt0.o: In function `__fini':
/cygdrive/c/sde/sde/examples/helloworld/../../kit/share/crt0.sx(.text+0x60):
und
efined reference to `_ecode'
/cygdrive/c/sde/sde/examples/helloworld/../../kit/share/crt0.sx(.text+0x64):
und
efined reference to `_ecode'
collect2: ld returned 1 exit status
sde-make: *** [ex1ram] Error 1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: A problem about gprof
@ 2003-01-27 14:37 Bill Calaway
0 siblings, 0 replies; 3+ messages in thread
From: Bill Calaway @ 2003-01-27 14:37 UTC (permalink / raw)
To: linux-mips, ZhouY.external
Often there are seperate precompiled versions of libraries that where compiled with profiling on. For example, if you have glibc-profile installed you should change your -l into a -l_p. Just a hunch, but check to see if you have a profiled version of the "e" library.
Bill Calaway
--
On Mon, 27 Jan 2003 15:27:16
ZhouY.external wrote:
>Hi dear experts,
> In order to use the gprof in the SDE 5.02 toolchain, I compiled a program
>with '-p' option but the compiler responsed with a error. I have checked the
>startup assembly code crt0.sx. There is an address operation which need the
>address of '_ecode'. Which library has the symbol '_ecode'? Could you give
>me a clue?
> Thanks in advance!
>
> Best regards,
>
> Yidan
>
>
>PS. The following is the error messge:
>sde-gcc -O -g -mcpu=4kc -mips32 -EB -mno-float -DGNUSIM -D__SIM
>'-Afloat(no)'
> -I../../kit/GSIM32B/../gnusim -c -DMCRT0 ../../kit/share/crt0.sx -o
>mcrt0
>.o
>sde-gcc -g -p -mcpu=4kc -mips32 -EB -mno-float -DGNUSIM -D__SIM
>'-Afloat(no)'
> -I../../kit/GSIM32B/../gnusim -c hello.c -o hello.o
>sde-make[1]: Entering directory `/cygdrive/c/sde/sde/kit/GSIM32B'
>sde-make[1]: Nothing to be done for `kit'.
>sde-make[1]: Leaving directory `/cygdrive/c/sde/sde/kit/GSIM32B'
>sde-gcc -mcpu=4kc -mips32 -EB -mno-float -Ttext 80000400
>-L../../kit/GSIM32B
>../../kit/GSIM32B/ramstart.o mcrt0.o hello.o -lc -lram -lgcc -lc -le
>-lram -l
>c -lgcc ../../kit/GSIM32B/crtn.o -o ex1ram
>mcrt0.o: In function `__fini':
>/cygdrive/c/sde/sde/examples/helloworld/../../kit/share/crt0.sx(.text+0x60):
>und
>efined reference to `_ecode'
>/cygdrive/c/sde/sde/examples/helloworld/../../kit/share/crt0.sx(.text+0x64):
>und
>efined reference to `_ecode'
>collect2: ld returned 1 exit status
>sde-make: *** [ex1ram] Error 1
>
>
>
_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: A problem about gprof
2003-01-27 14:27 ZhouY.external
@ 2003-01-28 6:58 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2003-01-28 6:58 UTC (permalink / raw)
To: ZhouY.external; +Cc: linux-mips
On Mon, Jan 27, 2003 at 03:27:16PM +0100, ZhouY.external@infineon.com wrote:
> In order to use the gprof in the SDE 5.02 toolchain, I compiled a program
> with '-p' option but the compiler responsed with a error. I have checked the
> startup assembly code crt0.sx. There is an address operation which need the
> address of '_ecode'. Which library has the symbol '_ecode'? Could you give
> me a clue?
There is no crt0.something in Linux. Seems your compiler is configured
for some obscure target. Rebuild your compiler for mips-linux or
mipsel-linux as target. Zero chance otherwise.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-28 6:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-27 14:37 A problem about gprof Bill Calaway
-- strict thread matches above, loose matches on Subject: below --
2003-01-27 14:27 ZhouY.external
2003-01-28 6:58 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.