Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Gprofiling Missing gcrt1.o Object file
@ 2008-12-18 14:06 Viswanath
  2008-12-18 16:58 ` David Daney
  0 siblings, 1 reply; 3+ messages in thread
From: Viswanath @ 2008-12-18 14:06 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

Hi,
          I am trying to profile (gprof profiling) my application which is
cross-compiled for the target Mips system [*Linux Mips 2.6.8.1]* and UCLIBC
*uclibc-crosstools_gcc-3.4.2_uclibc-20050502. *As far as i searched in the
google i could see a requirement of gcrt1.o object file for the mips linux
which is not available on the mips-linux.

          I tried linking with crt1.o but i could not get accurate profiling
information. I came to know that gcrt1.o is required to get the accurate
information. Where can i get the so called gcrt1.o for Mips-linux.

Thanks & Regards,
Viswanath.

[-- Attachment #2: Type: text/html, Size: 724 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gprofiling Missing gcrt1.o Object file
  2008-12-18 14:06 Gprofiling Missing gcrt1.o Object file Viswanath
@ 2008-12-18 16:58 ` David Daney
  2008-12-18 17:34   ` Viswanath
  0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2008-12-18 16:58 UTC (permalink / raw)
  To: Viswanath; +Cc: linux-mips

Viswanath wrote:
> Hi,
>           I am trying to profile (gprof profiling) my application which 
> is cross-compiled for the target Mips system [*Linux Mips 2.6.8.1]* and 
> UCLIBC *uclibc-crosstools_gcc-3.4.2_uclibc-20050502. *As far as i 
> searched in the google i could see a requirement of gcrt1.o object file 
> for the mips linux which is not available on the mips-linux.
> 
>           I tried linking with crt1.o but i could not get accurate 
> profiling information. I came to know that gcrt1.o is required to get 
> the accurate information. Where can i get the so called gcrt1.o for 
> Mips-linux.
> 

gcrt1.o should be part of the C library (uClibc in your case).  If it is 
  not providing it, it is a bug in uClibc.

Actually I don't even know it uClibc supplies a gcrt1.o.  Our build 
doesn't seem to have one.  If you build a glibc based system, that would 
give you a working gcrt1.o

David Daney

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gprofiling Missing gcrt1.o Object file
  2008-12-18 16:58 ` David Daney
@ 2008-12-18 17:34   ` Viswanath
  0 siblings, 0 replies; 3+ messages in thread
From: Viswanath @ 2008-12-18 17:34 UTC (permalink / raw)
  To: David Daney; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]

am planning to cross compile gcrt1.c (source files )with mips-linux-gcc.
Will let you know the output.

Thanks
--viswanath reddy

On Thu, Dec 18, 2008 at 10:28 PM, David Daney <ddaney@caviumnetworks.com>wrote:

> Viswanath wrote:
>
>> Hi,
>>          I am trying to profile (gprof profiling) my application which is
>> cross-compiled for the target Mips system [*Linux Mips 2.6.8.1]* and UCLIBC
>> *uclibc-crosstools_gcc-3.4.2_uclibc-20050502. *As far as i searched in the
>> google i could see a requirement of gcrt1.o object file for the mips linux
>> which is not available on the mips-linux.
>>
>>          I tried linking with crt1.o but i could not get accurate
>> profiling information. I came to know that gcrt1.o is required to get the
>> accurate information. Where can i get the so called gcrt1.o for Mips-linux.
>>
>>
> gcrt1.o should be part of the C library (uClibc in your case).  If it is
>  not providing it, it is a bug in uClibc.
>
> Actually I don't even know it uClibc supplies a gcrt1.o.  Our build doesn't
> seem to have one.  If you build a glibc based system, that would give you a
> working gcrt1.o
>
> David Daney
>

[-- Attachment #2: Type: text/html, Size: 1715 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-18 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-18 14:06 Gprofiling Missing gcrt1.o Object file Viswanath
2008-12-18 16:58 ` David Daney
2008-12-18 17:34   ` Viswanath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox