History

nds32/ftrace: Add RECORD_MCOUNT support

Recognize NDS32 object files in recordmcount.pl.

Zong Li committed 8 years ago

Commit fbf58a51 parent 1e9b14c2 files · +4 −0Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/recordmcount.pl+3−0
@@ -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}