]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - scripts/recordmcount.pl
lib: bitmap: change bitmap_shift_right to take unsigned parameters
[mirror_ubuntu-artful-kernel.git] / scripts / recordmcount.pl
index 537c38ca2e1c7008b2f0f98d4e172c714162eb79..826470d7f00077278875a68c577bccbc7a82d5ea 100755 (executable)
@@ -242,8 +242,13 @@ if ($arch eq "x86_64") {
     $cc .= " -m32";
 
 } elsif ($arch eq "s390" && $bits == 64) {
-    $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_390_(PC|PLT)32DBL\\s+_mcount\\+0x2\$";
-    $mcount_adjust = -14;
+    if ($cc =~ /-DCC_USING_HOTPATCH/) {
+       $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*c0 04 00 00 00 00\\s*brcl\\s*0,[0-9a-f]+ <([^\+]*)>\$";
+       $mcount_adjust = 0;
+    } else {
+       $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_390_(PC|PLT)32DBL\\s+_mcount\\+0x2\$";
+       $mcount_adjust = -14;
+    }
     $alignment = 8;
     $type = ".quad";
     $ld .= " -m elf64_s390";