/* This is used to find sections missing the SHF_ALLOC flag. The cause of this is often a section specified in assembler without "ax" / "aw".  */
static void check_section(const char *modname, struct elf_info *elf, Elf_Shdr *sechdr)
/* This is used to find sections missing the SHF_ALLOC flag. The cause of this is often a section specified in assembler without "ax" / "aw".  */
static void check_section(const char *modname, struct elf_info *elf, Elf_Shdr *sechdr)
{
	const char *sec = sech_name(elf, sechdr);
	if (sechdr->sh_type == SHT_PROGBITS &&
	    !(sechdr->sh_flags & SHF_ALLOC) &&
	    !match(sec, section_white_list)) {
		warn("%s (%s): unexpected non-allocatable section.\n"
		     "Did you forget to use \"ax\"/\"aw\" in a .S file?\n"
		     "Note that for example <linux/init.h> contains\n"
		     "section definitions for use in .S files.\n\n",
		     modname, sec);
	}
}