diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/recordmcount.pl | 3 |
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 | |||
135 | my $function_regex; # Find the name of a function | 135 | my $function_regex; # Find the name of a function |
136 | # (return offset and func name) | 136 | # (return offset and func name) |
137 | my $mcount_regex; # Find the call site to mcount (return offset) | 137 | my $mcount_regex; # Find the call site to mcount (return offset) |
138 | my $alignment; # The .align value to use for $mcount_section | 138 | my $alignment; # The .align value to use for $mcount_section |
139 | 139 | ||
140 | if ($arch eq "x86") { | 140 | if ($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"; |