]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - scripts/recordmcount.c
gianfar: fix signedness issue
[net-next-2.6.git] / scripts / recordmcount.c
index 2d32b9ced20ae91d7cb73a50fc8fe455c24c31e7..f2f32eee2c5bbff3880b52be0769ca8a78cd171a 100644 (file)
@@ -325,8 +325,10 @@ do_file(char const *const fname)
                }
                if (EM_S390 == w2(ehdr->e_machine))
                        reltype = R_390_32;
-               if (EM_MIPS == w2(ehdr->e_machine))
+               if (EM_MIPS == w2(ehdr->e_machine)) {
                        reltype = R_MIPS_32;
+                       is_fake_mcount32 = MIPS32_is_fake_mcount;
+               }
                do32(ehdr, fname, reltype);
        } break;
        case ELFCLASS64: {
@@ -343,6 +345,7 @@ do_file(char const *const fname)
                        reltype = R_MIPS_64;
                        Elf64_r_sym = MIPS64_r_sym;
                        Elf64_r_info = MIPS64_r_info;
+                       is_fake_mcount64 = MIPS64_is_fake_mcount;
                }
                do64(ghdr, fname, reltype);
        } break;