Lines Matching defs:fromsec
842 * @fromsec: Array of sections to be matched.
844 * @bad_tosec: Relocations applied to a section in @fromsec to a section in
847 * @good_tosec: Relocations applied to a section in @fromsec must be
853 const char *fromsec[20];
864 .fromsec = { TEXT_SECTIONS, NULL },
869 .fromsec = { DATA_SECTIONS, NULL },
874 .fromsec = { TEXT_SECTIONS, DATA_SECTIONS, NULL },
880 .fromsec = { ALL_XXXINIT_SECTIONS, NULL },
886 .fromsec = { ALL_INIT_SECTIONS, NULL },
892 .fromsec = { ALL_EXIT_SECTIONS, NULL },
897 .fromsec = { ALL_PCI_INIT_SECTIONS, NULL },
902 .fromsec = { "__ex_table", NULL },
913 const char *fromsec, const char *tosec)
929 if (match(fromsec, check->fromsec)) {
949 * fromsec = .data*
956 * fromsec = .data*
979 * fromsec = text section
983 static int secref_whitelist(const char *fromsec, const char *fromsym,
988 match(fromsec, PATTERNS(DATA_SECTIONS)) &&
994 match(fromsec, PATTERNS(DATA_SECTIONS)) &&
999 if (match(fromsec, PATTERNS(DATA_SECTIONS)) &&
1011 if (match(fromsec, PATTERNS(DATA_SECTIONS)) &&
1022 match(fromsec, PATTERNS(DATA_SECTIONS)) &&
1028 if (strstarts(fromsec, ".head.text") &&
1037 if (match(fromsec, PATTERNS(ALL_TEXT_SECTIONS)) &&
1136 unsigned int fsecndx, const char *fromsec, Elf_Addr faddr,
1150 if (!secref_whitelist(fromsec, fromsym, tosec, tosym))
1156 modname, fromsym, (unsigned int)(faddr - from->st_value), fromsec, tosym, tosec);
1165 fromsec, (long)faddr, tosec, modname);
1174 fromsec, (long)faddr, tosec, tosec, tosec);
1177 fromsec, (long)faddr, tosec);
1253 unsigned int fsecndx, const char *fromsec,
1264 mismatch = section_mismatch(fromsec, tosec);
1269 fsecndx, fromsec, faddr,
1482 const char *fromsec = sec_name(elf, fsecndx);
1487 if (match(fromsec, section_white_list))
1503 if (!strcmp("__ex_table", fromsec) &&
1508 if (!strcmp("__ex_table", fromsec) &&
1515 fsecndx, fromsec, r_offset, taddr);
1524 const char *fromsec = sec_name(elf, fsecndx);
1529 if (match(fromsec, section_white_list))
1559 fsecndx, fromsec, r_offset, taddr);