Lines Matching refs:fromsec
1029 const char *fromsec[20]; member
1036 Elf_Rela *r, Elf_Sym *sym, const char *fromsec);
1043 const char *fromsec);
1050 .fromsec = { TEXT_SECTIONS, NULL },
1056 .fromsec = { DATA_SECTIONS, NULL },
1062 .fromsec = { DATA_SECTIONS, NULL },
1071 .fromsec = { TEXT_SECTIONS, NULL },
1077 .fromsec = { DATA_SECTIONS, NULL },
1084 .fromsec = { ALL_XXXINIT_SECTIONS, NULL },
1091 .fromsec = { ALL_XXXEXIT_SECTIONS, NULL },
1098 .fromsec = { ALL_INIT_SECTIONS, NULL },
1105 .fromsec = { ALL_EXIT_SECTIONS, NULL },
1111 .fromsec = { ALL_PCI_INIT_SECTIONS, NULL },
1118 .fromsec = { "___ksymtab*", NULL },
1124 .fromsec = { "__ex_table", NULL },
1136 const char *fromsec, const char *tosec) in section_mismatch() argument
1152 if (match(fromsec, check->fromsec)) { in section_mismatch()
1225 const char *fromsec, const char *fromsym, in secref_whitelist() argument
1230 match(fromsec, data_sections) && in secref_whitelist()
1236 match(fromsec, data_sections) && in secref_whitelist()
1242 match(fromsec, data_sections) && in secref_whitelist()
1247 if (match(fromsec, head_sections) && in secref_whitelist()
1256 if (match(fromsec, text_sections) && in secref_whitelist()
1446 const char *fromsec, in report_sec_mismatch() argument
1465 modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec, in report_sec_mismatch()
1470 prl_from = sec2annotation(fromsec); in report_sec_mismatch()
1520 prl_from = sec2annotation(fromsec); in report_sec_mismatch()
1534 prl_from = sec2annotation(fromsec); in report_sec_mismatch()
1551 prl_from = sec2annotation(fromsec); in report_sec_mismatch()
1586 Elf_Rela *r, Elf_Sym *sym, const char *fromsec) in default_mismatch_handler() argument
1594 from = find_elf_symbol2(elf, r->r_offset, fromsec); in default_mismatch_handler()
1606 fromsec, fromsym, tosec, tosym)) { in default_mismatch_handler()
1608 fromsec, r->r_offset, fromsym, in default_mismatch_handler()
1662 const char* fromsec, const char* tosec) in report_extable_warnings() argument
1664 Elf_Sym* fromsym = find_elf_symbol2(elf, r->r_offset, fromsec); in report_extable_warnings()
1680 modname, fromsec, (long)r->r_offset, from_pretty_name, in report_extable_warnings()
1694 fromsec, (long)r->r_offset, tosec, tosec, tosec); in report_extable_warnings()
1700 const char *fromsec) in extable_mismatch_handler() argument
1706 report_extable_warnings(modname, elf, mismatch, r, sym, fromsec, tosec); in extable_mismatch_handler()
1714 fromsec, (long)r->r_offset, tosec, modname); in extable_mismatch_handler()
1722 fromsec, (long)r->r_offset, tosec); in extable_mismatch_handler()
1729 fromsec, (long)r->r_offset, tosec); in extable_mismatch_handler()
1734 Elf_Rela *r, Elf_Sym *sym, const char *fromsec) in check_section_mismatch() argument
1737 const struct sectioncheck *mismatch = section_mismatch(fromsec, tosec); in check_section_mismatch()
1742 r, sym, fromsec); in check_section_mismatch()
1745 r, sym, fromsec); in check_section_mismatch()
1848 const char *fromsec; in section_rela() local
1853 fromsec = sech_name(elf, sechdr); in section_rela()
1854 fromsec += strlen(".rela"); in section_rela()
1856 if (match(fromsec, section_white_list)) in section_rela()
1881 if (is_second_extable_reloc(start, rela, fromsec)) in section_rela()
1882 find_extable_entry_size(fromsec, &r); in section_rela()
1883 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rela()
1894 const char *fromsec; in section_rel() local
1899 fromsec = sech_name(elf, sechdr); in section_rel()
1900 fromsec += strlen(".rel"); in section_rel()
1902 if (match(fromsec, section_white_list)) in section_rel()
1941 if (is_second_extable_reloc(start, rel, fromsec)) in section_rel()
1942 find_extable_entry_size(fromsec, &r); in section_rel()
1943 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rel()