From 686f1b60f20d3968dfe19df48fc6f27cea466d02 Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Fri, 20 Nov 2009 20:34:31 +0800 Subject: [PATCH] --- yaml --- r: 177899 b: refs/heads/master c: e6299d2677e600f6a0bf93bbb89f20d3de5252de h: refs/heads/master i: 177897: f0fedc887d2642e451d74beee49c7a1b49721029 177895: 43f8299fce2de31243752a6dbc4671dceb0ee8d2 v: v3 --- [refs] | 2 +- trunk/scripts/Makefile.build | 1 + trunk/scripts/recordmcount.pl | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 9a7d9cc31acb..1b14c78f8d4e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 69a7d1b3ec64786cfc8a16ef3e8585d1f93d3944 +refs/heads/master: e6299d2677e600f6a0bf93bbb89f20d3de5252de diff --git a/trunk/scripts/Makefile.build b/trunk/scripts/Makefile.build index 341b58902ffc..0b94d2fa3a88 100644 --- a/trunk/scripts/Makefile.build +++ b/trunk/scripts/Makefile.build @@ -207,6 +207,7 @@ endif ifdef CONFIG_FTRACE_MCOUNT_RECORD cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ + "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ "$(if $(CONFIG_64BIT),64,32)" \ "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ "$(if $(part-of-module),1,0)" "$(@)"; diff --git a/trunk/scripts/recordmcount.pl b/trunk/scripts/recordmcount.pl index 9cf0a6fad6ba..ab368e8a007d 100755 --- a/trunk/scripts/recordmcount.pl +++ b/trunk/scripts/recordmcount.pl @@ -113,13 +113,13 @@ my $V = '0.1'; -if ($#ARGV != 10) { - print "usage: $P arch bits objdump objcopy cc ld nm rm mv is_module inputfile\n"; +if ($#ARGV != 11) { + print "usage: $P arch endian bits objdump objcopy cc ld nm rm mv is_module inputfile\n"; print "version: $V\n"; exit(1); } -my ($arch, $bits, $objdump, $objcopy, $cc, +my ($arch, $endian, $bits, $objdump, $objcopy, $cc, $ld, $nm, $rm, $mv, $is_module, $inputfile) = @ARGV; # This file refers to mcount and shouldn't be ftraced, so lets' ignore it