Skip to content

Commit

Permalink
ftrace: specify $alignment for sh architecture
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matt Fleming authored and Ingo Molnar committed Nov 23, 2008
1 parent c204f72 commit 3a3d04a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
my $function_regex; # Find the name of a function
# (return offset and func name)
my $mcount_regex; # Find the call site to mcount (return offset)
my $alignment; # The .align value to use for $mcount_section
my $alignment; # The .align value to use for $mcount_section

if ($arch eq "x86") {
if ($bits == 64) {
Expand Down Expand Up @@ -176,6 +176,7 @@
$cc .= " -m32";

} elsif ($arch eq "sh") {
$alignment = 2;

# force flags for this arch
$ld .= " -m shlelf_linux";
Expand Down

0 comments on commit 3a3d04a

Please sign in to comment.