History

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).

Matt Fleming committed 17 years ago

Commit 3a3d04a1 parent c204f721 file · +2 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/recordmcount.pl+2−1
@@ -135,7 +135,7 @@ my $section_regex; # Find the start of a section · 134 unmodified lines
135135 my $function_regex; # Find the name of a function
136136 # (return offset and func name)
137137 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
139139
140140 if ($arch eq "x86") {
141141 if ($bits == 64) {
@@ -176,6 +176,7 @@ if ($arch eq "x86_64") { · 34 unmodified lines
176176 $cc .= " -m32";
177177
178178 } elsif ($arch eq "sh") {
179+ $alignment = 2;
179180
180181 # force flags for this arch
181182 $ld .= " -m shlelf_linux";