linux-mips
[Top] [All Lists]

Re: [PATCH] ftrace porting of linux-2.6.29 for mips

To: wu zhangjin <wuzhangjin@gmail.com>, Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: Re: [PATCH] ftrace porting of linux-2.6.29 for mips
From: Chris Dearman <chris@mips.com>
Date: Wed, 15 Apr 2009 10:34:59 -0700
In-reply-to: <20090414124001.GB28950@adriano.hkcable.com.hk>
Organization: MIPS Technologies
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <b00321320904021847w5ab3acb6nd1cd554c251ef8f6@mail.gmail.com> <20090403113315.GC6629@adriano.hkcable.com.hk> <b00321320904030503w8fe0165t2aded6727f35e24c@mail.gmail.com> <b00321320904030551p774d295lce3581c23d9d8c26@mail.gmail.com> <20090403141158.GA27751@adriano.hkcable.com.hk> <b00321320904030753s2e10503fud4ba50b0fda13d8f@mail.gmail.com> <20090403160304.GB27751@adriano.hkcable.com.hk> <20090403180652.GC27751@adriano.hkcable.com.hk> <20090414124001.GB28950@adriano.hkcable.com.hk>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Icedove 1.5.0.14eol (X11/20090106)
Zhang Le wrote:
I got ftrace working on fuloong 2f box, finally.

The patch could be get here:
http://repo.or.cz/w/linux-2.6/linux-loongson.git?a=shortlog;h=refs/heads/linux-2.6.29-stable-ftrace-from-wu

It is the second last patch in the above git repo.

I pulled this patch into my local tree to try it out. The attached patch removes spurious warnings about linking pic and non-pic object files.

It might be better to pass KBUILD_CFLAGS into the script to get the same build options as the rest of the kernel. Was there a reason not to do this?

Regards
Chris

--
Chris Dearman               Desk: +1 650 567 5092  Cell: +1 650 224 8603
MIPS Technologies Inc         1225 Charleston Rd, Mountain View CA 94043
commit dfda04e16fa0cb3929c799d3fdec6b2c1bcc7e51
Author: Chris Dearman <chris@mips.com>
Date:   Wed Apr 15 10:26:38 2009 -0700

    [MIPS] Generate non-PIC object file when building mcount helper code
    
    Signed-off-by: Chris Dearman <chris@mips.com>

diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 8f6118e..ccf4043 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -213,7 +213,7 @@ if ($arch eq "x86_64") {
             $ld .= " -melf".$bits."ltsmip";
     }   
 
-    $cc .= " -mno-abicalls -mabi=" . $bits . $endian;
+    $cc .= " -mno-abicalls -fno-pic -mabi=" . $bits . $endian;
     $ld .= $endian;
 
     if ($bits == 64) {
<Prev in Thread] Current Thread [Next in Thread>