From 526b557c520213851a13c7765cfee020030c3a02 Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Thu, 20 Nov 2008 21:49:52 +0000 Subject: [PATCH] --- yaml --- r: 121170 b: refs/heads/master c: 3a3d04aed05add2247ea2ba5da5f90dba4062f3f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/recordmcount.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f02c4b5c888b..9f6a0093501d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c204f7264c7de85aecd3638dc8fe07aba6d1fff5 +refs/heads/master: 3a3d04aed05add2247ea2ba5da5f90dba4062f3f diff --git a/trunk/scripts/recordmcount.pl b/trunk/scripts/recordmcount.pl index c5c58ac90c04..03b6af1388ea 100755 --- a/trunk/scripts/recordmcount.pl +++ b/trunk/scripts/recordmcount.pl @@ -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) { @@ -176,6 +176,7 @@ $cc .= " -m32"; } elsif ($arch eq "sh") { + $alignment = 2; # force flags for this arch $ld .= " -m shlelf_linux";