Dynamic ftrace support for s390.
Showing the changes to scripts (1 of 10 files). Show all
Unified · Split
| @@ -185,6 +185,19 @@ if ($arch eq "x86_64") { · 184 unmodified lines | |||
| 185 | $objcopy .= " -O elf32-i386"; | 185 | $objcopy .= " -O elf32-i386"; |
| 186 | $cc .= " -m32"; | 186 | $cc .= " -m32"; |
| 187 | 187 | ||
| 188 | } elsif ($arch eq "s390" && $bits == 32) { | ||
| 189 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_390_32\\s+_mcount\$"; | ||
| 190 | $alignment = 4; | ||
| 191 | $ld .= " -m elf_s390"; | ||
| 192 | $cc .= " -m31"; | ||
| 193 | |||
| 194 | } elsif ($arch eq "s390" && $bits == 64) { | ||
| 195 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_390_(PC|PLT)32DBL\\s+_mcount\\+0x2\$"; | ||
| 196 | $alignment = 8; | ||
| 197 | $type = ".quad"; | ||
| 198 | $ld .= " -m elf64_s390"; | ||
| 199 | $cc .= " -m64"; | ||
| 200 | |||
| 188 | } elsif ($arch eq "sh") { | 201 | } elsif ($arch eq "sh") { |
| 189 | $alignment = 2; | 202 | $alignment = 2; |
| 190 | 203 | ||