aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/recordmcount.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/recordmcount.c')
-rw-r--r--scripts/recordmcount.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index 7648a5d11154..ee52cb8e17ad 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -368,8 +368,10 @@ do_file(char const *const fname)
368 "unrecognized ET_REL file: %s\n", fname); 368 "unrecognized ET_REL file: %s\n", fname);
369 fail_file(); 369 fail_file();
370 } 370 }
371 if (w2(ehdr->e_machine) == EM_S390) 371 if (w2(ehdr->e_machine) == EM_S390) {
372 reltype = R_390_32; 372 reltype = R_390_32;
373 mcount_adjust_32 = -4;
374 }
373 if (w2(ehdr->e_machine) == EM_MIPS) { 375 if (w2(ehdr->e_machine) == EM_MIPS) {
374 reltype = R_MIPS_32; 376 reltype = R_MIPS_32;
375 is_fake_mcount32 = MIPS32_is_fake_mcount; 377 is_fake_mcount32 = MIPS32_is_fake_mcount;
@@ -384,8 +386,10 @@ do_file(char const *const fname)
384 "unrecognized ET_REL file: %s\n", fname); 386 "unrecognized ET_REL file: %s\n", fname);
385 fail_file(); 387 fail_file();
386 } 388 }
387 if (w2(ghdr->e_machine) == EM_S390) 389 if (w2(ghdr->e_machine) == EM_S390) {
388 reltype = R_390_64; 390 reltype = R_390_64;
391 mcount_adjust_64 = -8;
392 }
389 if (w2(ghdr->e_machine) == EM_MIPS) { 393 if (w2(ghdr->e_machine) == EM_MIPS) {
390 reltype = R_MIPS_64; 394 reltype = R_MIPS_64;
391 Elf64_r_sym = MIPS64_r_sym; 395 Elf64_r_sym = MIPS64_r_sym;