]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - scripts/recordmcount.pl
UBUNTU: Ubuntu-5.11.0-22.23
[mirror_ubuntu-hirsute-kernel.git] / scripts / recordmcount.pl
index 56c801502b9a7b224af3d4d47b9caa71c9033ea8..867860ea57daa4d5a2a5acef88558d253968592d 100755 (executable)
@@ -265,7 +265,11 @@ if ($arch eq "x86_64") {
 
     # force flags for this arch
     $ld .= " -m shlelf_linux";
-    $objcopy .= " -O elf32-sh-linux";
+    if ($endian eq "big") {
+        $objcopy .= " -O elf32-shbig-linux";
+    } else {
+        $objcopy .= " -O elf32-sh-linux";
+    }
 
 } elsif ($arch eq "powerpc") {
     my $ldemulation;