Lines Matching defs:fromsec
813 * @fromsec: Array of sections to be matched.
815 * @bad_tosec: Relocations applied to a section in @fromsec to a section in
818 * @good_tosec: Relocations applied to a section in @fromsec must be
824 const char *fromsec[20];
835 .fromsec = { TEXT_SECTIONS, DATA_SECTIONS, NULL },
841 .fromsec = { ALL_INIT_SECTIONS, NULL },
847 .fromsec = { ALL_EXIT_SECTIONS, NULL },
852 .fromsec = { ALL_PCI_INIT_SECTIONS, NULL },
857 .fromsec = { "__ex_table", NULL },
868 const char *fromsec, const char *tosec)
884 if (match(fromsec, check->fromsec)) {
904 * fromsec = .data*
911 * fromsec = .data*
934 * fromsec = text section
938 static int secref_whitelist(const char *fromsec, const char *fromsym,
943 match(fromsec, PATTERNS(DATA_SECTIONS)) &&
949 match(fromsec, PATTERNS(DATA_SECTIONS)) &&
954 if (match(fromsec, PATTERNS(DATA_SECTIONS)) &&
960 if (strstarts(fromsec, ".head.text") &&
969 if (match(fromsec, PATTERNS(ALL_TEXT_SECTIONS)) &&
1011 unsigned int fsecndx, const char *fromsec, Elf_Addr faddr,
1026 if (!secref_whitelist(fromsec, fromsym, tosec, tosym))
1041 fromsec, tosym[0] ? tosym : taddr_str, tosec);
1050 fromsec, (long)faddr, tosec, modname);
1059 fromsec, (long)faddr, tosec, tosec, tosec);
1062 fromsec, (long)faddr, tosec);
1138 unsigned int fsecndx, const char *fromsec,
1149 mismatch = section_mismatch(fromsec, tosec);
1154 fsecndx, fromsec, faddr,
1332 unsigned int fsecndx, const char *fromsec,
1350 if (!strcmp("__ex_table", fromsec) &&
1357 if (!strcmp("__ex_table", fromsec))
1369 fsecndx, fromsec, r_offset, taddr);
1374 unsigned int fsecndx, const char *fromsec,
1406 fsecndx, fromsec, r_offset, taddr);