linux-mips
[Top] [All Lists]

Re: Gprofiling Missing gcrt1.o Object file

To: "David Daney" <ddaney@caviumnetworks.com>
Subject: Re: Gprofiling Missing gcrt1.o Object file
From: Viswanath <rviswanathreddy@gmail.com>
Date: Thu, 18 Dec 2008 23:04:32 +0530
Cc: linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=IkRHpWIEm9l65gQnazycu8hTx3F8tFawEzxxgj+lUVM=; b=wdapogg50mvNWEUo31k2rcgD4gSzVpkgQknEIaFPVlIJnVvR1s1KDx7txTTvir+tCU E5/j42HEl4uv8t8LQ/YjLr9Owv4fQe7lDjraa66qyIsxRLg7hUVJt+A7sVDY+CQae4Eg FIqxiwIWHsQ/oFNYpbtWg8eJma2xNDZgWCLKw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=Xe/lFAI0vQNdIPhKJvgjG45OYg9RgdSBv8iRWcpho7yvfy4JnKGa5L/16mSM6KLm+3 GLaZFLaVODCOQ6X1DKPxT8neHDH6b1EwazU5oZARCPWBk1OmP5ehEnBO1gWpdGsBBioq +p62R5P9Sw501nFjkTqvjJOStpbHQTVkcIGug=
In-reply-to: <494A8141.2050006@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <f2e0c4580812180606h4699be41x1128c97086ebb902@mail.gmail.com> <494A8141.2050006@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
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

<Prev in Thread] Current Thread [Next in Thread>