aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Fleming <mjf@gentoo.org>2008-11-20 16:49:52 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-23 05:42:29 -0500
commit3a3d04aed05add2247ea2ba5da5f90dba4062f3f (patch)
tree0a4578f6e9a89befcf30661eb24943ca2ab3b1eb /scripts
parentc204f7264c7de85aecd3638dc8fe07aba6d1fff5 (diff)
ftrace: specify $alignment for sh architecture
Impact: extend scripts/recordmcount.pl with default alignment for SH Set $alignment=2 for the sh architecture so that a ".align 2" directive will be emitted for all __mcount_loc sections. Fix a whitspace error while I'm here (converted spaces to tabs). Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/recordmcount.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index c5c58ac90c04..03b6af1388ea 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -135,7 +135,7 @@ my $section_regex; # Find the start of a section
135my $function_regex; # Find the name of a function 135my $function_regex; # Find the name of a function
136 # (return offset and func name) 136 # (return offset and func name)
137my $mcount_regex; # Find the call site to mcount (return offset) 137my $mcount_regex; # Find the call site to mcount (return offset)
138my $alignment; # The .align value to use for $mcount_section 138my $alignment; # The .align value to use for $mcount_section
139 139
140if ($arch eq "x86") { 140if ($arch eq "x86") {
141 if ($bits == 64) { 141 if ($bits == 64) {
@@ -176,6 +176,7 @@ if ($arch eq "x86_64") {
176 $cc .= " -m32"; 176 $cc .= " -m32";
177 177
178} elsif ($arch eq "sh") { 178} elsif ($arch eq "sh") {
179 $alignment = 2;
179 180
180 # force flags for this arch 181 # force flags for this arch
181 $ld .= " -m shlelf_linux"; 182 $ld .= " -m shlelf_linux";