Recognize NDS32 object files in recordmcount.pl.
Showing the changes to scripts (1 of 2 files). Show all
Unified · Split
| @@ -389,6 +389,9 @@ if ($arch eq "x86_64") { · 388 unmodified lines | |||
| 389 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$"; | 389 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$"; |
| 390 | $type = ".quad"; | 390 | $type = ".quad"; |
| 391 | $alignment = 2; | 391 | $alignment = 2; |
| 392 | } elsif ($arch eq "nds32") { | ||
| 393 | $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_NDS32_HI20_RELA\\s+_mcount\$"; | ||
| 394 | $alignment = 2; | ||
| 392 | } else { | 395 | } else { |
| 393 | die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; | 396 | die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; |
| 394 | } | 397 | } |