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@xxxxxxxx> 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@xxxxxxxx> 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) {