Commit 3a3d04ae authored by Matt Fleming's avatar Matt Fleming Committed by Ingo Molnar

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: default avatarMatt Fleming <mjf@gentoo.org>
Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent c204f726
...@@ -176,6 +176,7 @@ if ($arch eq "x86_64") { ...@@ -176,6 +176,7 @@ if ($arch eq "x86_64") {
$cc .= " -m32"; $cc .= " -m32";
} elsif ($arch eq "sh") { } elsif ($arch eq "sh") {
$alignment = 2;
# force flags for this arch # force flags for this arch
$ld .= " -m shlelf_linux"; $ld .= " -m shlelf_linux";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment