sechdrs            64 arch/alpha/kernel/module.c module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
sechdrs            72 arch/alpha/kernel/module.c 	esechdrs = sechdrs + hdr->e_shnum;
sechdrs            78 arch/alpha/kernel/module.c 	for (s = sechdrs; s < esechdrs; ++s)
sechdrs            83 arch/alpha/kernel/module.c 			me->arch.gotsecindex = s - sechdrs;
sechdrs           110 arch/alpha/kernel/module.c 	for (s = sechdrs; s < esechdrs; ++s)
sechdrs           133 arch/alpha/kernel/module.c apply_relocate_add(Elf64_Shdr *sechdrs, const char *strtab,
sechdrs           137 arch/alpha/kernel/module.c 	Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr;
sechdrs           138 arch/alpha/kernel/module.c 	unsigned long i, n = sechdrs[relsec].sh_size / sizeof(*rela);
sechdrs           144 arch/alpha/kernel/module.c 	       sechdrs[relsec].sh_info);
sechdrs           146 arch/alpha/kernel/module.c 	base = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr;
sechdrs           147 arch/alpha/kernel/module.c 	symtab = (Elf64_Sym *)sechdrs[symindex].sh_addr;
sechdrs           152 arch/alpha/kernel/module.c 	got = sechdrs[me->arch.gotsecindex].sh_addr;
sechdrs            26 arch/arc/kernel/module.c int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
sechdrs            45 arch/arc/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs,
sechdrs            52 arch/arc/kernel/module.c 	Elf32_Rela *rel_entry = (void *)sechdrs[relsec].sh_addr;
sechdrs            61 arch/arc/kernel/module.c 	tgtsec = sechdrs[relsec].sh_info;
sechdrs            62 arch/arc/kernel/module.c 	tgt_addr = sechdrs[tgtsec].sh_addr;
sechdrs            63 arch/arc/kernel/module.c 	sym_sec = (Elf32_Sym *) sechdrs[symindex].sh_addr;
sechdrs            64 arch/arc/kernel/module.c 	n = sechdrs[relsec].sh_size / sizeof(*rel_entry);
sechdrs            67 arch/arc/kernel/module.c 		 module->arch.secstr + sechdrs[tgtsec].sh_name, tgt_addr);
sechdrs            86 arch/arc/kernel/module.c 			s = module->arch.secstr + sechdrs[sym_entry->st_shndx].sh_name;
sechdrs           114 arch/arc/kernel/module.c 	if (strcmp(module->arch.secstr+sechdrs[tgtsec].sh_name, ".eh_frame") == 0)
sechdrs           132 arch/arc/kernel/module.c int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
sechdrs           140 arch/arc/kernel/module.c 		unw = unwind_add_table(mod, (void *)sechdrs[unwsec].sh_addr,
sechdrs           141 arch/arc/kernel/module.c 				       sechdrs[unwsec].sh_size);
sechdrs           188 arch/arm/kernel/module-plts.c int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
sechdrs           193 arch/arm/kernel/module-plts.c 	Elf32_Shdr *s, *sechdrs_end = sechdrs + ehdr->e_shnum;
sechdrs           200 arch/arm/kernel/module-plts.c 	for (s = sechdrs; s < sechdrs_end; ++s) {
sechdrs           218 arch/arm/kernel/module-plts.c 	for (s = sechdrs + 1; s < sechdrs_end; ++s) {
sechdrs           221 arch/arm/kernel/module-plts.c 		Elf32_Shdr *dstsec = sechdrs + s->sh_info;
sechdrs            66 arch/arm/kernel/module.c apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
sechdrs            69 arch/arm/kernel/module.c 	Elf32_Shdr *symsec = sechdrs + symindex;
sechdrs            70 arch/arm/kernel/module.c 	Elf32_Shdr *relsec = sechdrs + relindex;
sechdrs            71 arch/arm/kernel/module.c 	Elf32_Shdr *dstsec = sechdrs + relsec->sh_info;
sechdrs           328 arch/arm/kernel/module.c 	const Elf_Shdr *sechdrs, const char *name)
sechdrs           331 arch/arm/kernel/module.c 	const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           333 arch/arm/kernel/module.c 	for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++)
sechdrs           343 arch/arm/kernel/module.c int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
sechdrs           348 arch/arm/kernel/module.c 	const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           349 arch/arm/kernel/module.c 	const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum;
sechdrs           355 arch/arm/kernel/module.c 	for (s = sechdrs; s < sechdrs_end; s++) {
sechdrs           392 arch/arm/kernel/module.c 	s = find_mod_section(hdr, sechdrs, ".pv_table");
sechdrs           396 arch/arm/kernel/module.c 	s = find_mod_section(hdr, sechdrs, ".alt.smp.init");
sechdrs           114 arch/arm/kernel/vdso.c 	Elf32_Shdr *sechdrs;
sechdrs           119 arch/arm/kernel/vdso.c 	sechdrs = (void *)ehdr + ehdr->e_shoff;
sechdrs           120 arch/arm/kernel/vdso.c 	secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset;
sechdrs           124 arch/arm/kernel/vdso.c 		if (strcmp(secnames + sechdrs[i].sh_name, name) == 0) {
sechdrs           126 arch/arm/kernel/vdso.c 				*size = sechdrs[i].sh_size;
sechdrs           127 arch/arm/kernel/vdso.c 			return (void *)ehdr + sechdrs[i].sh_offset;
sechdrs            28 arch/arm64/include/asm/module.h u64 module_emit_plt_entry(struct module *mod, Elf64_Shdr *sechdrs,
sechdrs            32 arch/arm64/include/asm/module.h u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs,
sechdrs            71 arch/arm64/kernel/module-plts.c u64 module_emit_plt_entry(struct module *mod, Elf64_Shdr *sechdrs,
sechdrs            77 arch/arm64/kernel/module-plts.c 	struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr;
sechdrs           103 arch/arm64/kernel/module-plts.c u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs,
sechdrs           108 arch/arm64/kernel/module-plts.c 	struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr;
sechdrs           255 arch/arm64/kernel/module-plts.c int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
sechdrs           269 arch/arm64/kernel/module-plts.c 		if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt"))
sechdrs           271 arch/arm64/kernel/module-plts.c 		else if (!strcmp(secstrings + sechdrs[i].sh_name, ".init.plt"))
sechdrs           274 arch/arm64/kernel/module-plts.c 			 !strcmp(secstrings + sechdrs[i].sh_name,
sechdrs           276 arch/arm64/kernel/module-plts.c 			tramp = sechdrs + i;
sechdrs           277 arch/arm64/kernel/module-plts.c 		else if (sechdrs[i].sh_type == SHT_SYMTAB)
sechdrs           278 arch/arm64/kernel/module-plts.c 			syms = (Elf64_Sym *)sechdrs[i].sh_addr;
sechdrs           291 arch/arm64/kernel/module-plts.c 		Elf64_Rela *rels = (void *)ehdr + sechdrs[i].sh_offset;
sechdrs           292 arch/arm64/kernel/module-plts.c 		int numrels = sechdrs[i].sh_size / sizeof(Elf64_Rela);
sechdrs           293 arch/arm64/kernel/module-plts.c 		Elf64_Shdr *dstsec = sechdrs + sechdrs[i].sh_info;
sechdrs           295 arch/arm64/kernel/module-plts.c 		if (sechdrs[i].sh_type != SHT_RELA)
sechdrs           307 arch/arm64/kernel/module-plts.c 						sechdrs[i].sh_info, dstsec);
sechdrs           310 arch/arm64/kernel/module-plts.c 						sechdrs[i].sh_info, dstsec);
sechdrs           313 arch/arm64/kernel/module-plts.c 	pltsec = sechdrs + mod->arch.core.plt_shndx;
sechdrs           321 arch/arm64/kernel/module-plts.c 	pltsec = sechdrs + mod->arch.init.plt_shndx;
sechdrs           228 arch/arm64/kernel/module.c static int reloc_insn_adrp(struct module *mod, Elf64_Shdr *sechdrs,
sechdrs           244 arch/arm64/kernel/module.c 		val = module_emit_veneer_for_adrp(mod, sechdrs, place, val & ~0xfff);
sechdrs           255 arch/arm64/kernel/module.c int apply_relocate_add(Elf64_Shdr *sechdrs,
sechdrs           267 arch/arm64/kernel/module.c 	Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs           269 arch/arm64/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs           271 arch/arm64/kernel/module.c 		loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           275 arch/arm64/kernel/module.c 		sym = (Elf64_Sym *)sechdrs[symindex].sh_addr
sechdrs           401 arch/arm64/kernel/module.c 			ovf = reloc_insn_adrp(me, sechdrs, loc, val);
sechdrs           446 arch/arm64/kernel/module.c 				val = module_emit_plt_entry(me, sechdrs, loc, &rel[i], sym);
sechdrs           474 arch/arm64/kernel/module.c 		    const Elf_Shdr *sechdrs,
sechdrs           478 arch/arm64/kernel/module.c 	const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           480 arch/arm64/kernel/module.c 	for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) {
sechdrs            41 arch/c6x/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs,
sechdrs            47 arch/c6x/kernel/module.c 	Elf32_Rela *rel = (void *) sechdrs[relsec].sh_addr;
sechdrs            55 arch/c6x/kernel/module.c 		 relsec, sechdrs[relsec].sh_info, offset);
sechdrs            57 arch/c6x/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs            59 arch/c6x/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            64 arch/c6x/kernel/module.c 		sym = (Elf_Sym *)sechdrs[symindex].sh_addr
sechdrs            50 arch/csky/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab,
sechdrs            54 arch/csky/kernel/module.c 	Elf32_Rela	*rel = (void *) sechdrs[relsec].sh_addr;
sechdrs            59 arch/csky/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs            61 arch/csky/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            63 arch/csky/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs             9 arch/h8300/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs,
sechdrs            16 arch/h8300/kernel/module.c 	Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr;
sechdrs            19 arch/h8300/kernel/module.c 	       sechdrs[relsec].sh_info);
sechdrs            20 arch/h8300/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) {
sechdrs            23 arch/h8300/kernel/module.c 			(uint32_t *)(sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            27 arch/h8300/kernel/module.c 		Elf32_Sym *sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs            27 arch/hexagon/kernel/module.c int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
sechdrs            37 arch/hexagon/kernel/module.c 		       secstrings + sechdrs[i].sh_name);
sechdrs            38 arch/hexagon/kernel/module.c 		if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0)
sechdrs            40 arch/hexagon/kernel/module.c 		if (strcmp(secstrings + sechdrs[i].sh_name, ".got.plt") == 0)
sechdrs            42 arch/hexagon/kernel/module.c 		if (strcmp(secstrings + sechdrs[i].sh_name, ".rela.plt") == 0)
sechdrs            67 arch/hexagon/kernel/module.c int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
sechdrs            75 arch/hexagon/kernel/module.c 	unsigned int nrelocs = sechdrs[relsec].sh_size / sizeof(Elf32_Rela);
sechdrs            76 arch/hexagon/kernel/module.c 	Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr;
sechdrs            77 arch/hexagon/kernel/module.c 	Elf32_Word sym_info = sechdrs[relsec].sh_info;
sechdrs            78 arch/hexagon/kernel/module.c 	Elf32_Sym *sym_base = (Elf32_Sym *) sechdrs[symindex].sh_addr;
sechdrs            79 arch/hexagon/kernel/module.c 	void *loc_base = (void *) sechdrs[sym_info].sh_addr;
sechdrs           423 arch/ia64/kernel/module.c module_frob_arch_sections (Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings,
sechdrs           427 arch/ia64/kernel/module.c 	Elf64_Shdr *s, *sechdrs_end = sechdrs + ehdr->e_shnum;
sechdrs           433 arch/ia64/kernel/module.c 	for (s = sechdrs; s < sechdrs_end; ++s)
sechdrs           451 arch/ia64/kernel/module.c 	for (s = sechdrs + 1; s < sechdrs_end; ++s) {
sechdrs           789 arch/ia64/kernel/module.c apply_relocate_add (Elf64_Shdr *sechdrs, const char *strtab, unsigned int symindex,
sechdrs           792 arch/ia64/kernel/module.c 	unsigned int i, n = sechdrs[relsec].sh_size / sizeof(Elf64_Rela);
sechdrs           793 arch/ia64/kernel/module.c 	Elf64_Rela *rela = (void *) sechdrs[relsec].sh_addr;
sechdrs           798 arch/ia64/kernel/module.c 	       relsec, n, sechdrs[relsec].sh_info);
sechdrs           800 arch/ia64/kernel/module.c 	target_sec = sechdrs + sechdrs[relsec].sh_info;
sechdrs           830 arch/ia64/kernel/module.c 			       ((Elf64_Sym *) sechdrs[symindex].sh_addr
sechdrs           906 arch/ia64/kernel/module.c module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *mod)
sechdrs            22 arch/m68k/kernel/module.c int apply_relocate(Elf32_Shdr *sechdrs,
sechdrs            29 arch/m68k/kernel/module.c 	Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs            34 arch/m68k/kernel/module.c 	       sechdrs[relsec].sh_info);
sechdrs            35 arch/m68k/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs            37 arch/m68k/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            41 arch/m68k/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs            62 arch/m68k/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs,
sechdrs            69 arch/m68k/kernel/module.c 	Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs            74 arch/m68k/kernel/module.c 	       sechdrs[relsec].sh_info);
sechdrs            75 arch/m68k/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs            77 arch/m68k/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            81 arch/m68k/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           103 arch/m68k/kernel/module.c 		    const Elf_Shdr *sechdrs,
sechdrs            18 arch/microblaze/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab,
sechdrs            23 arch/microblaze/kernel/module.c 	Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr;
sechdrs            32 arch/microblaze/kernel/module.c 		relsec, sechdrs[relsec].sh_info);
sechdrs            34 arch/microblaze/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) {
sechdrs            36 arch/microblaze/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr +
sechdrs            38 arch/microblaze/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr +
sechdrs           117 arch/microblaze/kernel/module.c int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
sechdrs           307 arch/mips/kernel/module.c static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab,
sechdrs           324 arch/mips/kernel/module.c 	       sechdrs[relsec].sh_info);
sechdrs           326 arch/mips/kernel/module.c 	r.rel = (void *)sechdrs[relsec].sh_addr;
sechdrs           329 arch/mips/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / reloc_sz; i++) {
sechdrs           331 arch/mips/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           334 arch/mips/kernel/module.c 		sym = (Elf_Sym *)sechdrs[symindex].sh_addr
sechdrs           392 arch/mips/kernel/module.c int apply_relocate(Elf_Shdr *sechdrs, const char *strtab,
sechdrs           396 arch/mips/kernel/module.c 	return __apply_relocate(sechdrs, strtab, symindex, relsec, me, false);
sechdrs           400 arch/mips/kernel/module.c int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
sechdrs           404 arch/mips/kernel/module.c 	return __apply_relocate(sechdrs, strtab, symindex, relsec, me, true);
sechdrs           431 arch/mips/kernel/module.c 		    const Elf_Shdr *sechdrs,
sechdrs           435 arch/mips/kernel/module.c 	char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           441 arch/mips/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
sechdrs           183 arch/mips/kernel/vpe.c 			    Elf_Shdr *sechdrs, const char *secstrings)
sechdrs           197 arch/mips/kernel/vpe.c 		sechdrs[i].sh_entsize = ~0UL;
sechdrs           201 arch/mips/kernel/vpe.c 			Elf_Shdr *s = &sechdrs[i];
sechdrs           425 arch/mips/kernel/vpe.c static int apply_relocations(Elf32_Shdr *sechdrs,
sechdrs           431 arch/mips/kernel/vpe.c 	Elf32_Rel *rel = (void *) sechdrs[relsec].sh_addr;
sechdrs           438 arch/mips/kernel/vpe.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs           442 arch/mips/kernel/vpe.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           445 arch/mips/kernel/vpe.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           477 arch/mips/kernel/vpe.c static void simplify_symbols(Elf_Shdr *sechdrs,
sechdrs           483 arch/mips/kernel/vpe.c 	Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr;
sechdrs           485 arch/mips/kernel/vpe.c 	unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym);
sechdrs           490 arch/mips/kernel/vpe.c 		if (strncmp(secstrings + sechdrs[i].sh_name, ".bss", 4) == 0) {
sechdrs           491 arch/mips/kernel/vpe.c 			bssbase = sechdrs[i].sh_addr;
sechdrs           524 arch/mips/kernel/vpe.c 			secbase = sechdrs[sym[i].st_shndx].sh_addr;
sechdrs           536 arch/mips/kernel/vpe.c static void dump_elfsymbols(Elf_Shdr *sechdrs, unsigned int symindex,
sechdrs           539 arch/mips/kernel/vpe.c 	Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr;
sechdrs           540 arch/mips/kernel/vpe.c 	unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym);
sechdrs           550 arch/mips/kernel/vpe.c static int find_vpe_symbols(struct vpe *v, Elf_Shdr *sechdrs,
sechdrs           554 arch/mips/kernel/vpe.c 	Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr;
sechdrs           555 arch/mips/kernel/vpe.c 	unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym);
sechdrs           579 arch/mips/kernel/vpe.c 	Elf_Shdr *sechdrs;
sechdrs           596 arch/mips/kernel/vpe.c 	    || hdr->e_shentsize != sizeof(*sechdrs)) {
sechdrs           612 arch/mips/kernel/vpe.c 	sechdrs = (void *)hdr + hdr->e_shoff;
sechdrs           613 arch/mips/kernel/vpe.c 	secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           614 arch/mips/kernel/vpe.c 	sechdrs[0].sh_addr = 0;
sechdrs           621 arch/mips/kernel/vpe.c 			if ((sechdrs[i].sh_type != SHT_NOBITS) &&
sechdrs           622 arch/mips/kernel/vpe.c 			    (len < sechdrs[i].sh_offset + sechdrs[i].sh_size)) {
sechdrs           630 arch/mips/kernel/vpe.c 			sechdrs[i].sh_addr = (size_t) hdr +
sechdrs           631 arch/mips/kernel/vpe.c 				sechdrs[i].sh_offset;
sechdrs           634 arch/mips/kernel/vpe.c 			if (sechdrs[i].sh_type == SHT_SYMTAB) {
sechdrs           636 arch/mips/kernel/vpe.c 				strindex = sechdrs[i].sh_link;
sechdrs           638 arch/mips/kernel/vpe.c 					sechdrs[strindex].sh_offset;
sechdrs           641 arch/mips/kernel/vpe.c 		layout_sections(&mod, hdr, sechdrs, secstrings);
sechdrs           654 arch/mips/kernel/vpe.c 			if (!(sechdrs[i].sh_flags & SHF_ALLOC))
sechdrs           657 arch/mips/kernel/vpe.c 			dest = v->load_addr + sechdrs[i].sh_entsize;
sechdrs           659 arch/mips/kernel/vpe.c 			if (sechdrs[i].sh_type != SHT_NOBITS)
sechdrs           660 arch/mips/kernel/vpe.c 				memcpy(dest, (void *)sechdrs[i].sh_addr,
sechdrs           661 arch/mips/kernel/vpe.c 				       sechdrs[i].sh_size);
sechdrs           663 arch/mips/kernel/vpe.c 			sechdrs[i].sh_addr = (unsigned long)dest;
sechdrs           666 arch/mips/kernel/vpe.c 				 secstrings + sechdrs[i].sh_name,
sechdrs           667 arch/mips/kernel/vpe.c 				 sechdrs[i].sh_addr);
sechdrs           671 arch/mips/kernel/vpe.c 		simplify_symbols(sechdrs, symindex, strtab, secstrings,
sechdrs           676 arch/mips/kernel/vpe.c 			const char *strtab = (char *)sechdrs[strindex].sh_addr;
sechdrs           677 arch/mips/kernel/vpe.c 			unsigned int info = sechdrs[i].sh_info;
sechdrs           684 arch/mips/kernel/vpe.c 			if (!(sechdrs[info].sh_flags & SHF_ALLOC))
sechdrs           687 arch/mips/kernel/vpe.c 			if (sechdrs[i].sh_type == SHT_REL)
sechdrs           688 arch/mips/kernel/vpe.c 				err = apply_relocations(sechdrs, strtab,
sechdrs           690 arch/mips/kernel/vpe.c 			else if (sechdrs[i].sh_type == SHT_RELA)
sechdrs           691 arch/mips/kernel/vpe.c 				err = apply_relocate_add(sechdrs, strtab,
sechdrs           714 arch/mips/kernel/vpe.c 			if (sechdrs[i].sh_type == SHT_SYMTAB) {
sechdrs           716 arch/mips/kernel/vpe.c 				strindex = sechdrs[i].sh_link;
sechdrs           718 arch/mips/kernel/vpe.c 					sechdrs[strindex].sh_offset;
sechdrs           724 arch/mips/kernel/vpe.c 				sechdrs[i].sh_addr = (size_t) hdr +
sechdrs           725 arch/mips/kernel/vpe.c 					sechdrs[i].sh_offset;
sechdrs           734 arch/mips/kernel/vpe.c 	if ((find_vpe_symbols(v, sechdrs, symindex, strtab, &mod)) < 0) {
sechdrs            23 arch/nds32/kernel/module.c 			      Elf_Shdr * sechdrs,
sechdrs           113 arch/nds32/kernel/module.c apply_relocate_add(Elf32_Shdr * sechdrs, const char *strtab,
sechdrs           117 arch/nds32/kernel/module.c 	Elf32_Shdr *symsec = sechdrs + symindex;
sechdrs           118 arch/nds32/kernel/module.c 	Elf32_Shdr *relsec = sechdrs + relindex;
sechdrs           119 arch/nds32/kernel/module.c 	Elf32_Shdr *dstsec = sechdrs + relsec->sh_info;
sechdrs           270 arch/nds32/kernel/module.c module_finalize(const Elf32_Ehdr * hdr, const Elf_Shdr * sechdrs,
sechdrs            44 arch/nios2/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab,
sechdrs            49 arch/nios2/kernel/module.c 	Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr;
sechdrs            52 arch/nios2/kernel/module.c 		 sechdrs[relsec].sh_info);
sechdrs            54 arch/nios2/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) {
sechdrs            58 arch/nios2/kernel/module.c 			= ((void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            63 arch/nios2/kernel/module.c 			= ((Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           133 arch/nios2/kernel/module.c int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
sechdrs            16 arch/openrisc/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs,
sechdrs            23 arch/openrisc/kernel/module.c 	Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs            29 arch/openrisc/kernel/module.c 		 sechdrs[relsec].sh_info);
sechdrs            30 arch/openrisc/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs            32 arch/openrisc/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            37 arch/openrisc/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           299 arch/parisc/kernel/module.c 			      CONST Elf_Shdr *sechdrs,
sechdrs           312 arch/parisc/kernel/module.c 		const Elf_Rela *rels = (void *)sechdrs[i].sh_addr;
sechdrs           313 arch/parisc/kernel/module.c 		unsigned long nrels = sechdrs[i].sh_size / sizeof(*rels);
sechdrs           316 arch/parisc/kernel/module.c 		if (strncmp(secstrings + sechdrs[i].sh_name,
sechdrs           320 arch/parisc/kernel/module.c 		if (sechdrs[i].sh_type != SHT_RELA)
sechdrs           340 arch/parisc/kernel/module.c 		s = sechdrs[i].sh_info;
sechdrs           518 arch/parisc/kernel/module.c int apply_relocate_add(Elf_Shdr *sechdrs,
sechdrs           525 arch/parisc/kernel/module.c 	Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs           532 arch/parisc/kernel/module.c 	unsigned int targetsec = sechdrs[relsec].sh_info;
sechdrs           538 arch/parisc/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs           540 arch/parisc/kernel/module.c 		loc = (void *)sechdrs[targetsec].sh_addr
sechdrs           543 arch/parisc/kernel/module.c 		loc0 = sechdrs[targetsec].sh_addr;
sechdrs           545 arch/parisc/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           663 arch/parisc/kernel/module.c int apply_relocate_add(Elf_Shdr *sechdrs,
sechdrs           670 arch/parisc/kernel/module.c 	Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs           678 arch/parisc/kernel/module.c 	unsigned int targetsec = sechdrs[relsec].sh_info;
sechdrs           682 arch/parisc/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs           684 arch/parisc/kernel/module.c 		loc = (void *)sechdrs[targetsec].sh_addr
sechdrs           687 arch/parisc/kernel/module.c 		loc0 = sechdrs[targetsec].sh_addr;
sechdrs           689 arch/parisc/kernel/module.c 		sym = (Elf64_Sym *)sechdrs[symindex].sh_addr
sechdrs           832 arch/parisc/kernel/module.c 		      const Elf_Shdr *sechdrs)
sechdrs           840 arch/parisc/kernel/module.c 	table = (unsigned char *)sechdrs[me->arch.unwind_section].sh_addr;
sechdrs           841 arch/parisc/kernel/module.c 	end = table + sechdrs[me->arch.unwind_section].sh_size;
sechdrs           857 arch/parisc/kernel/module.c 		    const Elf_Shdr *sechdrs,
sechdrs           884 arch/parisc/kernel/module.c 	register_unwind_table(me, sechdrs);
sechdrs           889 arch/parisc/kernel/module.c 		if(sechdrs[i].sh_type == SHT_SYMTAB
sechdrs           890 arch/parisc/kernel/module.c 		   && (sechdrs[i].sh_flags & SHF_ALLOC)) {
sechdrs           891 arch/parisc/kernel/module.c 			int strindex = sechdrs[i].sh_link;
sechdrs           896 arch/parisc/kernel/module.c 			symhdr = (Elf_Shdr *)&sechdrs[i];
sechdrs           897 arch/parisc/kernel/module.c 			strtab = (char *)sechdrs[strindex].sh_addr;
sechdrs           940 arch/parisc/kernel/module.c 	secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           941 arch/parisc/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
sechdrs           955 arch/parisc/kernel/module.c 				err = apply_relocate((Elf_Shdr *)sechdrs,
sechdrs           957 arch/parisc/kernel/module.c 							s - sechdrs, me);
sechdrs           959 arch/parisc/kernel/module.c 				err = apply_relocate_add((Elf_Shdr *)sechdrs,
sechdrs           961 arch/parisc/kernel/module.c 							s - sechdrs, me);
sechdrs            99 arch/powerpc/include/asm/module.h int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs);
sechdrs           101 arch/powerpc/include/asm/module.h static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs)
sechdrs            21 arch/powerpc/kernel/module.c 				    const Elf_Shdr *sechdrs,
sechdrs            27 arch/powerpc/kernel/module.c 	secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs            29 arch/powerpc/kernel/module.c 		if (strcmp(secstrings+sechdrs[i].sh_name, name) == 0)
sechdrs            30 arch/powerpc/kernel/module.c 			return &sechdrs[i];
sechdrs            35 arch/powerpc/kernel/module.c 		const Elf_Shdr *sechdrs, struct module *me)
sechdrs            40 arch/powerpc/kernel/module.c 	rc = module_finalize_ftrace(me, sechdrs);
sechdrs            45 arch/powerpc/kernel/module.c 	sect = find_section(hdr, sechdrs, "__ftr_fixup");
sechdrs            51 arch/powerpc/kernel/module.c 	sect = find_section(hdr, sechdrs, "__mmu_ftr_fixup");
sechdrs            58 arch/powerpc/kernel/module.c 	sect = find_section(hdr, sechdrs, "__fw_ftr_fixup");
sechdrs            66 arch/powerpc/kernel/module.c 	sect = find_section(hdr, sechdrs, ".opd");
sechdrs            74 arch/powerpc/kernel/module.c 	sect = find_section(hdr, sechdrs, "__spec_barrier_fixup");
sechdrs            81 arch/powerpc/kernel/module.c 	sect = find_section(hdr, sechdrs, "__lwsync_fixup");
sechdrs            88 arch/powerpc/kernel/module_32.c 				  const Elf32_Shdr *sechdrs,
sechdrs           100 arch/powerpc/kernel/module_32.c 		if ((strstr(secstrings + sechdrs[i].sh_name, ".init") != NULL)
sechdrs           105 arch/powerpc/kernel/module_32.c 		if (strstr(secstrings + sechdrs[i].sh_name, ".debug"))
sechdrs           108 arch/powerpc/kernel/module_32.c 		if (sechdrs[i].sh_type == SHT_RELA) {
sechdrs           111 arch/powerpc/kernel/module_32.c 			       (void *)hdr + sechdrs[i].sh_offset,
sechdrs           112 arch/powerpc/kernel/module_32.c 			       sechdrs[i].sh_size / sizeof(Elf32_Rela));
sechdrs           119 arch/powerpc/kernel/module_32.c 			sort((void *)hdr + sechdrs[i].sh_offset,
sechdrs           120 arch/powerpc/kernel/module_32.c 			     sechdrs[i].sh_size / sizeof(Elf32_Rela),
sechdrs           124 arch/powerpc/kernel/module_32.c 					     + sechdrs[i].sh_offset,
sechdrs           125 arch/powerpc/kernel/module_32.c 					     sechdrs[i].sh_size
sechdrs           135 arch/powerpc/kernel/module_32.c 			      Elf32_Shdr *sechdrs,
sechdrs           143 arch/powerpc/kernel/module_32.c 		if (strcmp(secstrings + sechdrs[i].sh_name, ".init.plt") == 0)
sechdrs           145 arch/powerpc/kernel/module_32.c 		else if (strcmp(secstrings + sechdrs[i].sh_name, ".plt") == 0)
sechdrs           154 arch/powerpc/kernel/module_32.c 	sechdrs[me->arch.core_plt_section].sh_size
sechdrs           155 arch/powerpc/kernel/module_32.c 		= get_plt_size(hdr, sechdrs, secstrings, 0);
sechdrs           156 arch/powerpc/kernel/module_32.c 	sechdrs[me->arch.init_plt_section].sh_size
sechdrs           157 arch/powerpc/kernel/module_32.c 		= get_plt_size(hdr, sechdrs, secstrings, 1);
sechdrs           174 arch/powerpc/kernel/module_32.c 			    const Elf32_Shdr *sechdrs,
sechdrs           183 arch/powerpc/kernel/module_32.c 		entry = (void *)sechdrs[mod->arch.core_plt_section].sh_addr;
sechdrs           185 arch/powerpc/kernel/module_32.c 		entry = (void *)sechdrs[mod->arch.init_plt_section].sh_addr;
sechdrs           208 arch/powerpc/kernel/module_32.c int apply_relocate_add(Elf32_Shdr *sechdrs,
sechdrs           215 arch/powerpc/kernel/module_32.c 	Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr;
sechdrs           221 arch/powerpc/kernel/module_32.c 	       sechdrs[relsec].sh_info);
sechdrs           222 arch/powerpc/kernel/module_32.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) {
sechdrs           224 arch/powerpc/kernel/module_32.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           228 arch/powerpc/kernel/module_32.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           261 arch/powerpc/kernel/module_32.c 						    sechdrs, module);
sechdrs           298 arch/powerpc/kernel/module_32.c int module_finalize_ftrace(struct module *module, const Elf_Shdr *sechdrs)
sechdrs           302 arch/powerpc/kernel/module_32.c 					 sechdrs, module);
sechdrs           246 arch/powerpc/kernel/module_64.c 				    const Elf64_Shdr *sechdrs)
sechdrs           254 arch/powerpc/kernel/module_64.c 		if (sechdrs[i].sh_type == SHT_RELA) {
sechdrs           257 arch/powerpc/kernel/module_64.c 			       (void *)sechdrs[i].sh_addr,
sechdrs           258 arch/powerpc/kernel/module_64.c 			       sechdrs[i].sh_size / sizeof(Elf64_Rela));
sechdrs           265 arch/powerpc/kernel/module_64.c 			sort((void *)sechdrs[i].sh_addr,
sechdrs           266 arch/powerpc/kernel/module_64.c 			     sechdrs[i].sh_size / sizeof(Elf64_Rela),
sechdrs           269 arch/powerpc/kernel/module_64.c 			relocs += count_relocs((void *)sechdrs[i].sh_addr,
sechdrs           270 arch/powerpc/kernel/module_64.c 					       sechdrs[i].sh_size
sechdrs           320 arch/powerpc/kernel/module_64.c static Elf64_Sym *find_dot_toc(Elf64_Shdr *sechdrs,
sechdrs           327 arch/powerpc/kernel/module_64.c 	syms = (Elf64_Sym *)sechdrs[symindex].sh_addr;
sechdrs           328 arch/powerpc/kernel/module_64.c 	numsyms = sechdrs[symindex].sh_size / sizeof(Elf64_Sym);
sechdrs           339 arch/powerpc/kernel/module_64.c 			      Elf64_Shdr *sechdrs,
sechdrs           348 arch/powerpc/kernel/module_64.c 		if (strcmp(secstrings + sechdrs[i].sh_name, ".stubs") == 0)
sechdrs           350 arch/powerpc/kernel/module_64.c 		else if (strcmp(secstrings + sechdrs[i].sh_name, ".toc") == 0) {
sechdrs           352 arch/powerpc/kernel/module_64.c 			if (sechdrs[i].sh_addralign < 8)
sechdrs           353 arch/powerpc/kernel/module_64.c 				sechdrs[i].sh_addralign = 8;
sechdrs           355 arch/powerpc/kernel/module_64.c 		else if (strcmp(secstrings+sechdrs[i].sh_name,"__versions")==0)
sechdrs           356 arch/powerpc/kernel/module_64.c 			dedotify_versions((void *)hdr + sechdrs[i].sh_offset,
sechdrs           357 arch/powerpc/kernel/module_64.c 					  sechdrs[i].sh_size);
sechdrs           360 arch/powerpc/kernel/module_64.c 		while ((p = strstr(secstrings + sechdrs[i].sh_name, ".init")))
sechdrs           363 arch/powerpc/kernel/module_64.c 		if (sechdrs[i].sh_type == SHT_SYMTAB)
sechdrs           364 arch/powerpc/kernel/module_64.c 			dedotify((void *)hdr + sechdrs[i].sh_offset,
sechdrs           365 arch/powerpc/kernel/module_64.c 				 sechdrs[i].sh_size / sizeof(Elf64_Sym),
sechdrs           367 arch/powerpc/kernel/module_64.c 				 + sechdrs[sechdrs[i].sh_link].sh_offset);
sechdrs           383 arch/powerpc/kernel/module_64.c 	sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs);
sechdrs           393 arch/powerpc/kernel/module_64.c static inline unsigned long my_r2(const Elf64_Shdr *sechdrs, struct module *me)
sechdrs           395 arch/powerpc/kernel/module_64.c 	return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000;
sechdrs           399 arch/powerpc/kernel/module_64.c static inline int create_stub(const Elf64_Shdr *sechdrs,
sechdrs           409 arch/powerpc/kernel/module_64.c 	reladdr = (unsigned long)entry - my_r2(sechdrs, me);
sechdrs           427 arch/powerpc/kernel/module_64.c static unsigned long stub_for_addr(const Elf64_Shdr *sechdrs,
sechdrs           434 arch/powerpc/kernel/module_64.c 	num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs);
sechdrs           437 arch/powerpc/kernel/module_64.c 	stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr;
sechdrs           446 arch/powerpc/kernel/module_64.c 	if (!create_stub(sechdrs, &stubs[i], addr, me))
sechdrs           522 arch/powerpc/kernel/module_64.c int apply_relocate_add(Elf64_Shdr *sechdrs,
sechdrs           529 arch/powerpc/kernel/module_64.c 	Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr;
sechdrs           535 arch/powerpc/kernel/module_64.c 	       sechdrs[relsec].sh_info);
sechdrs           539 arch/powerpc/kernel/module_64.c 		sym = find_dot_toc(sechdrs, strtab, symindex);
sechdrs           543 arch/powerpc/kernel/module_64.c 			sym->st_value = my_r2(sechdrs, me);
sechdrs           547 arch/powerpc/kernel/module_64.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) {
sechdrs           549 arch/powerpc/kernel/module_64.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           552 arch/powerpc/kernel/module_64.c 		sym = (Elf64_Sym *)sechdrs[symindex].sh_addr
sechdrs           575 arch/powerpc/kernel/module_64.c 			*(unsigned long *)location = my_r2(sechdrs, me);
sechdrs           580 arch/powerpc/kernel/module_64.c 			value -= my_r2(sechdrs, me);
sechdrs           593 arch/powerpc/kernel/module_64.c 			value -= my_r2(sechdrs, me);
sechdrs           601 arch/powerpc/kernel/module_64.c 			value -= my_r2(sechdrs, me);
sechdrs           614 arch/powerpc/kernel/module_64.c 			value -= my_r2(sechdrs, me);
sechdrs           627 arch/powerpc/kernel/module_64.c 			value -= my_r2(sechdrs, me);
sechdrs           639 arch/powerpc/kernel/module_64.c 				value = stub_for_addr(sechdrs, value, me);
sechdrs           694 arch/powerpc/kernel/module_64.c 			value = my_r2(sechdrs, me) - (unsigned long)location;
sechdrs           765 arch/powerpc/kernel/module_64.c static unsigned long create_ftrace_stub(const Elf64_Shdr *sechdrs,
sechdrs           786 arch/powerpc/kernel/module_64.c 	num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*entry);
sechdrs           789 arch/powerpc/kernel/module_64.c 	entry = (void *)sechdrs[me->arch.stubs_section].sh_addr;
sechdrs           817 arch/powerpc/kernel/module_64.c static unsigned long create_ftrace_stub(const Elf64_Shdr *sechdrs,
sechdrs           820 arch/powerpc/kernel/module_64.c 	return stub_for_addr(sechdrs, addr, me);
sechdrs           824 arch/powerpc/kernel/module_64.c int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs)
sechdrs           826 arch/powerpc/kernel/module_64.c 	mod->arch.tramp = create_ftrace_stub(sechdrs, mod,
sechdrs           829 arch/powerpc/kernel/module_64.c 	mod->arch.tramp_regs = create_ftrace_stub(sechdrs, mod,
sechdrs           235 arch/powerpc/kernel/vdso.c 	Elf32_Shdr *sechdrs;
sechdrs           240 arch/powerpc/kernel/vdso.c 	sechdrs = (void *)ehdr + ehdr->e_shoff;
sechdrs           241 arch/powerpc/kernel/vdso.c 	secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset;
sechdrs           245 arch/powerpc/kernel/vdso.c 		if (strcmp(secnames+sechdrs[i].sh_name, secname) == 0) {
sechdrs           247 arch/powerpc/kernel/vdso.c 				*size = sechdrs[i].sh_size;
sechdrs           248 arch/powerpc/kernel/vdso.c 			return (void *)ehdr + sechdrs[i].sh_offset;
sechdrs           340 arch/powerpc/kernel/vdso.c 	Elf64_Shdr *sechdrs;
sechdrs           345 arch/powerpc/kernel/vdso.c 	sechdrs = (void *)ehdr + ehdr->e_shoff;
sechdrs           346 arch/powerpc/kernel/vdso.c 	secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset;
sechdrs           350 arch/powerpc/kernel/vdso.c 		if (strcmp(secnames+sechdrs[i].sh_name, secname) == 0) {
sechdrs           352 arch/powerpc/kernel/vdso.c 				*size = sechdrs[i].sh_size;
sechdrs           353 arch/powerpc/kernel/vdso.c 			return (void *)ehdr + sechdrs[i].sh_offset;
sechdrs            90 arch/riscv/kernel/module-sections.c int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
sechdrs           101 arch/riscv/kernel/module-sections.c 		if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt"))
sechdrs           102 arch/riscv/kernel/module-sections.c 			mod->arch.plt.shdr = sechdrs + i;
sechdrs           103 arch/riscv/kernel/module-sections.c 		else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got"))
sechdrs           104 arch/riscv/kernel/module-sections.c 			mod->arch.got.shdr = sechdrs + i;
sechdrs           105 arch/riscv/kernel/module-sections.c 		else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got.plt"))
sechdrs           106 arch/riscv/kernel/module-sections.c 			mod->arch.got_plt.shdr = sechdrs + i;
sechdrs           124 arch/riscv/kernel/module-sections.c 		Elf_Rela *relas = (void *)ehdr + sechdrs[i].sh_offset;
sechdrs           125 arch/riscv/kernel/module-sections.c 		int num_rela = sechdrs[i].sh_size / sizeof(Elf_Rela);
sechdrs           126 arch/riscv/kernel/module-sections.c 		Elf_Shdr *dst_sec = sechdrs + sechdrs[i].sh_info;
sechdrs           128 arch/riscv/kernel/module-sections.c 		if (sechdrs[i].sh_type != SHT_RELA)
sechdrs           296 arch/riscv/kernel/module.c int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
sechdrs           300 arch/riscv/kernel/module.c 	Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr;
sechdrs           309 arch/riscv/kernel/module.c 	       sechdrs[relsec].sh_info);
sechdrs           311 arch/riscv/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs           313 arch/riscv/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           316 arch/riscv/kernel/module.c 		sym = (Elf_Sym *)sechdrs[symindex].sh_addr
sechdrs           345 arch/riscv/kernel/module.c 			for (j = 0; j < sechdrs[relsec].sh_size / sizeof(*rel); j++) {
sechdrs           347 arch/riscv/kernel/module.c 					sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           357 arch/riscv/kernel/module.c 						(Elf_Sym *)sechdrs[symindex].sh_addr
sechdrs           378 arch/riscv/kernel/module.c 			if (j == sechdrs[relsec].sh_size / sizeof(*rel)) {
sechdrs           300 arch/s390/kernel/machine_kexec_file.c 			val += pi->sechdrs[sym->st_shndx].sh_addr;
sechdrs           109 arch/s390/kernel/module.c int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
sechdrs           121 arch/s390/kernel/module.c 		switch (sechdrs[i].sh_type) {
sechdrs           123 arch/s390/kernel/module.c 			symtab = sechdrs + i;
sechdrs           138 arch/s390/kernel/module.c 	strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset;
sechdrs           154 arch/s390/kernel/module.c 		if (sechdrs[i].sh_type != SHT_RELA)
sechdrs           156 arch/s390/kernel/module.c 		nrela = sechdrs[i].sh_size / sizeof(Elf_Rela);
sechdrs           157 arch/s390/kernel/module.c 		rela = (void *) hdr + sechdrs[i].sh_offset;
sechdrs           415 arch/s390/kernel/module.c int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
sechdrs           426 arch/s390/kernel/module.c 	       relsec, sechdrs[relsec].sh_info);
sechdrs           427 arch/s390/kernel/module.c 	base = sechdrs[sechdrs[relsec].sh_info].sh_addr;
sechdrs           428 arch/s390/kernel/module.c 	symtab = (Elf_Sym *) sechdrs[symindex].sh_addr;
sechdrs           429 arch/s390/kernel/module.c 	rela = (Elf_Rela *) sechdrs[relsec].sh_addr;
sechdrs           430 arch/s390/kernel/module.c 	n = sechdrs[relsec].sh_size / sizeof(Elf_Rela);
sechdrs           441 arch/s390/kernel/module.c 		    const Elf_Shdr *sechdrs,
sechdrs           465 arch/s390/kernel/module.c 	secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           466 arch/s390/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
sechdrs           410 arch/sh/include/asm/dwarf.h #define module_dwarf_finalize(hdr, sechdrs, me)	(0)
sechdrs          1089 arch/sh/kernel/dwarf.c int module_dwarf_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
sechdrs          1094 arch/sh/kernel/dwarf.c 	char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs          1100 arch/sh/kernel/dwarf.c 		if ((sechdrs[i].sh_flags & SHF_ALLOC)
sechdrs          1101 arch/sh/kernel/dwarf.c 		    && !strcmp(secstrings+sechdrs[i].sh_name, ".eh_frame")) {
sechdrs          1102 arch/sh/kernel/dwarf.c 			start = sechdrs[i].sh_addr;
sechdrs          1103 arch/sh/kernel/dwarf.c 			end = start + sechdrs[i].sh_size;
sechdrs            24 arch/sh/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs,
sechdrs            31 arch/sh/kernel/module.c 	Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs            38 arch/sh/kernel/module.c 		 sechdrs[relsec].sh_info);
sechdrs            39 arch/sh/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs            41 arch/sh/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            45 arch/sh/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           100 arch/sh/kernel/module.c 		    const Elf_Shdr *sechdrs,
sechdrs           105 arch/sh/kernel/module.c 	ret |= module_dwarf_finalize(hdr, sechdrs, me);
sechdrs            56 arch/sparc/kernel/module.c 			      Elf_Shdr *sechdrs,
sechdrs            65 arch/sparc/kernel/module.c 	for (symidx = 0; sechdrs[symidx].sh_type != SHT_SYMTAB; symidx++) {
sechdrs            71 arch/sparc/kernel/module.c 	sym = (Elf_Sym *)sechdrs[symidx].sh_addr;
sechdrs            72 arch/sparc/kernel/module.c 	strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr;
sechdrs            74 arch/sparc/kernel/module.c 	for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) {
sechdrs            83 arch/sparc/kernel/module.c int apply_relocate_add(Elf_Shdr *sechdrs,
sechdrs            90 arch/sparc/kernel/module.c 	Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs            95 arch/sparc/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs            99 arch/sparc/kernel/module.c 		location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           109 arch/sparc/kernel/module.c 		sym = (Elf_Sym *)sechdrs[symindex].sh_addr
sechdrs           185 arch/sparc/kernel/module.c 			      const Elf_Shdr *sechdrs)
sechdrs           188 arch/sparc/kernel/module.c 	char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           190 arch/sparc/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
sechdrs           208 arch/sparc/kernel/module.c 		    const Elf_Shdr *sechdrs,
sechdrs           214 arch/sparc/kernel/module.c 	do_patch_sections(hdr, sechdrs);
sechdrs            30 arch/unicore32/kernel/module.c apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
sechdrs            33 arch/unicore32/kernel/module.c 	Elf32_Shdr *symsec = sechdrs + symindex;
sechdrs            34 arch/unicore32/kernel/module.c 	Elf32_Shdr *relsec = sechdrs + relindex;
sechdrs            35 arch/unicore32/kernel/module.c 	Elf32_Shdr *dstsec = sechdrs + relsec->sh_info;
sechdrs            29 arch/x86/kernel/livepatch.c 	for (s = info->sechdrs; s < info->sechdrs + info->hdr.e_shnum; s++) {
sechdrs           504 arch/x86/kernel/machine_kexec_64.c 	const Elf_Shdr *sechdrs;
sechdrs           507 arch/x86/kernel/machine_kexec_64.c 	sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
sechdrs           508 arch/x86/kernel/machine_kexec_64.c 	strtab = (char *)pi->ehdr + sechdrs[symtabsec->sh_link].sh_offset;
sechdrs           509 arch/x86/kernel/machine_kexec_64.c 	shstrtab = (char *)pi->ehdr + sechdrs[pi->ehdr->e_shstrndx].sh_offset;
sechdrs           547 arch/x86/kernel/machine_kexec_64.c 			name = shstrtab + sechdrs[sym->st_shndx].sh_name;
sechdrs           570 arch/x86/kernel/machine_kexec_64.c 			sec_base = pi->sechdrs[sym->st_shndx].sh_addr;
sechdrs            89 arch/x86/kernel/module.c int apply_relocate(Elf32_Shdr *sechdrs,
sechdrs            96 arch/x86/kernel/module.c 	Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs           101 arch/x86/kernel/module.c 	       relsec, sechdrs[relsec].sh_info);
sechdrs           102 arch/x86/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs           104 arch/x86/kernel/module.c 		location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           108 arch/x86/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           129 arch/x86/kernel/module.c int apply_relocate_add(Elf64_Shdr *sechdrs,
sechdrs           136 arch/x86/kernel/module.c 	Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr;
sechdrs           142 arch/x86/kernel/module.c 	       relsec, sechdrs[relsec].sh_info);
sechdrs           143 arch/x86/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) {
sechdrs           145 arch/x86/kernel/module.c 		loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs           150 arch/x86/kernel/module.c 		sym = (Elf64_Sym *)sechdrs[symindex].sh_addr
sechdrs           221 arch/x86/kernel/module.c 		    const Elf_Shdr *sechdrs,
sechdrs           226 arch/x86/kernel/module.c 	char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           228 arch/x86/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
sechdrs            47 arch/xtensa/kernel/module.c int apply_relocate_add(Elf32_Shdr *sechdrs,
sechdrs            54 arch/xtensa/kernel/module.c 	Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr;
sechdrs            60 arch/xtensa/kernel/module.c 		 sechdrs[relsec].sh_info);
sechdrs            62 arch/xtensa/kernel/module.c 	for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) {
sechdrs            63 arch/xtensa/kernel/module.c 		location = (char *)sechdrs[sechdrs[relsec].sh_info].sh_addr
sechdrs            65 arch/xtensa/kernel/module.c 		sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
sechdrs           111 include/linux/kexec.h 	Elf_Shdr *sechdrs;
sechdrs           341 include/linux/module.h 	Elf_Shdr *sechdrs;
sechdrs           868 include/linux/module.h 					const Elf_Shdr *sechdrs,
sechdrs            18 include/linux/moduleloader.h 			      Elf_Shdr *sechdrs,
sechdrs            42 include/linux/moduleloader.h int apply_relocate(Elf_Shdr *sechdrs,
sechdrs            48 include/linux/moduleloader.h static inline int apply_relocate(Elf_Shdr *sechdrs,
sechdrs            65 include/linux/moduleloader.h int apply_relocate_add(Elf_Shdr *sechdrs,
sechdrs            71 include/linux/moduleloader.h static inline int apply_relocate_add(Elf_Shdr *sechdrs,
sechdrs            85 include/linux/moduleloader.h 		    const Elf_Shdr *sechdrs,
sechdrs           165 kernel/kexec_file.c 	vfree(pi->sechdrs);
sechdrs           166 kernel/kexec_file.c 	pi->sechdrs = NULL;
sechdrs           834 kernel/kexec_file.c 	const Elf_Shdr *sechdrs;
sechdrs           840 kernel/kexec_file.c 	sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
sechdrs           845 kernel/kexec_file.c 		if (!(sechdrs[i].sh_flags & SHF_ALLOC))
sechdrs           848 kernel/kexec_file.c 		align = sechdrs[i].sh_addralign;
sechdrs           849 kernel/kexec_file.c 		if (sechdrs[i].sh_type != SHT_NOBITS) {
sechdrs           853 kernel/kexec_file.c 			kbuf->bufsz += sechdrs[i].sh_size;
sechdrs           858 kernel/kexec_file.c 			bss_sz += sechdrs[i].sh_size;
sechdrs           897 kernel/kexec_file.c 	Elf_Shdr *sechdrs;
sechdrs           904 kernel/kexec_file.c 	sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum));
sechdrs           905 kernel/kexec_file.c 	if (!sechdrs)
sechdrs           907 kernel/kexec_file.c 	memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff,
sechdrs           909 kernel/kexec_file.c 	pi->sechdrs = sechdrs;
sechdrs           919 kernel/kexec_file.c 		if (!(sechdrs[i].sh_flags & SHF_ALLOC))
sechdrs           922 kernel/kexec_file.c 		align = sechdrs[i].sh_addralign;
sechdrs           923 kernel/kexec_file.c 		if (sechdrs[i].sh_type == SHT_NOBITS) {
sechdrs           925 kernel/kexec_file.c 			sechdrs[i].sh_addr = bss_addr;
sechdrs           926 kernel/kexec_file.c 			bss_addr += sechdrs[i].sh_size;
sechdrs           931 kernel/kexec_file.c 		if (sechdrs[i].sh_flags & SHF_EXECINSTR &&
sechdrs           932 kernel/kexec_file.c 		    pi->ehdr->e_entry >= sechdrs[i].sh_addr &&
sechdrs           933 kernel/kexec_file.c 		    pi->ehdr->e_entry < (sechdrs[i].sh_addr
sechdrs           934 kernel/kexec_file.c 					 + sechdrs[i].sh_size)) {
sechdrs           935 kernel/kexec_file.c 			kbuf->image->start -= sechdrs[i].sh_addr;
sechdrs           939 kernel/kexec_file.c 		src = (void *)pi->ehdr + sechdrs[i].sh_offset;
sechdrs           941 kernel/kexec_file.c 		memcpy(dst, src, sechdrs[i].sh_size);
sechdrs           943 kernel/kexec_file.c 		sechdrs[i].sh_addr = kbuf->mem + offset;
sechdrs           944 kernel/kexec_file.c 		sechdrs[i].sh_offset = offset;
sechdrs           945 kernel/kexec_file.c 		offset += sechdrs[i].sh_size;
sechdrs           955 kernel/kexec_file.c 	const Elf_Shdr *sechdrs;
sechdrs           957 kernel/kexec_file.c 	sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
sechdrs           964 kernel/kexec_file.c 		relsec = sechdrs + i;
sechdrs           980 kernel/kexec_file.c 		section = pi->sechdrs + relsec->sh_info;
sechdrs           981 kernel/kexec_file.c 		symtab = sechdrs + relsec->sh_link;
sechdrs          1046 kernel/kexec_file.c 	vfree(pi->sechdrs);
sechdrs          1047 kernel/kexec_file.c 	pi->sechdrs = NULL;
sechdrs          1064 kernel/kexec_file.c 	const Elf_Shdr *sechdrs;
sechdrs          1074 kernel/kexec_file.c 	sechdrs = (void *)ehdr + ehdr->e_shoff;
sechdrs          1077 kernel/kexec_file.c 		if (sechdrs[i].sh_type != SHT_SYMTAB)
sechdrs          1080 kernel/kexec_file.c 		if (sechdrs[i].sh_link >= ehdr->e_shnum)
sechdrs          1083 kernel/kexec_file.c 		strtab = (void *)ehdr + sechdrs[sechdrs[i].sh_link].sh_offset;
sechdrs          1084 kernel/kexec_file.c 		syms = (void *)ehdr + sechdrs[i].sh_offset;
sechdrs          1087 kernel/kexec_file.c 		for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) {
sechdrs          1119 kernel/kexec_file.c 	sechdr = &pi->sechdrs[sym->st_shndx];
sechdrs          1150 kernel/kexec_file.c 	sec = pi->sechdrs + sym->st_shndx;
sechdrs           263 kernel/livepatch/core.c 		sec = pmod->klp_info->sechdrs + i;
sechdrs           288 kernel/livepatch/core.c 		ret = apply_relocate_add(pmod->klp_info->sechdrs,
sechdrs            17 kernel/module-internal.h 	Elf_Shdr *sechdrs;
sechdrs           349 kernel/module.c 		Elf_Shdr *shdr = &info->sechdrs[i];
sechdrs           362 kernel/module.c 	return (void *)info->sechdrs[find_sec(info, name)].sh_addr;
sechdrs           374 kernel/module.c 	*num = info->sechdrs[sec].sh_size / object_size;
sechdrs           375 kernel/module.c 	return (void *)info->sechdrs[sec].sh_addr;
sechdrs           647 kernel/module.c 	Elf_Shdr *pcpusec = &info->sechdrs[info->index.pcpu];
sechdrs           744 kernel/module.c 	if (info->sechdrs[info->index.pcpu].sh_size != 0)
sechdrs          1302 kernel/module.c 	Elf_Shdr *sechdrs = info->sechdrs;
sechdrs          1315 kernel/module.c 	versions = (void *) sechdrs[versindex].sh_addr;
sechdrs          1316 kernel/module.c 	num_versions = sechdrs[versindex].sh_size
sechdrs          1548 kernel/module.c 		if (!sect_empty(&info->sechdrs[i]))
sechdrs          1565 kernel/module.c 		Elf_Shdr *sec = &info->sechdrs[i];
sechdrs          1650 kernel/module.c 		if (!sect_empty(&info->sechdrs[i]) &&
sechdrs          1651 kernel/module.c 		    (info->sechdrs[i].sh_type == SHT_NOTE))
sechdrs          1665 kernel/module.c 		if (sect_empty(&info->sechdrs[i]))
sechdrs          1667 kernel/module.c 		if (info->sechdrs[i].sh_type == SHT_NOTE) {
sechdrs          1671 kernel/module.c 			nattr->size = info->sechdrs[i].sh_size;
sechdrs          1672 kernel/module.c 			nattr->private = (void *) info->sechdrs[i].sh_addr;
sechdrs          2117 kernel/module.c 	size = sizeof(*info->sechdrs) * info->hdr->e_shnum;
sechdrs          2118 kernel/module.c 	mod->klp_info->sechdrs = kmemdup(info->sechdrs, size, GFP_KERNEL);
sechdrs          2119 kernel/module.c 	if (mod->klp_info->sechdrs == NULL) {
sechdrs          2125 kernel/module.c 	size = info->sechdrs[info->hdr->e_shstrndx].sh_size;
sechdrs          2142 kernel/module.c 	mod->klp_info->sechdrs[symndx].sh_addr = \
sechdrs          2148 kernel/module.c 	kfree(mod->klp_info->sechdrs);
sechdrs          2156 kernel/module.c 	kfree(mod->klp_info->sechdrs);
sechdrs          2298 kernel/module.c 	Elf_Shdr *symsec = &info->sechdrs[info->index.sym];
sechdrs          2354 kernel/module.c 				secbase = info->sechdrs[sym[i].st_shndx].sh_addr;
sechdrs          2370 kernel/module.c 		unsigned int infosec = info->sechdrs[i].sh_info;
sechdrs          2377 kernel/module.c 		if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC))
sechdrs          2381 kernel/module.c 		if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH)
sechdrs          2384 kernel/module.c 		if (info->sechdrs[i].sh_type == SHT_REL)
sechdrs          2385 kernel/module.c 			err = apply_relocate(info->sechdrs, info->strtab,
sechdrs          2387 kernel/module.c 		else if (info->sechdrs[i].sh_type == SHT_RELA)
sechdrs          2388 kernel/module.c 			err = apply_relocate_add(info->sechdrs, info->strtab,
sechdrs          2435 kernel/module.c 		info->sechdrs[i].sh_entsize = ~0UL;
sechdrs          2440 kernel/module.c 			Elf_Shdr *s = &info->sechdrs[i];
sechdrs          2473 kernel/module.c 			Elf_Shdr *s = &info->sechdrs[i];
sechdrs          2546 kernel/module.c 	Elf_Shdr *infosec = &info->sechdrs[info->index.info];
sechdrs          2620 kernel/module.c 	const Elf_Shdr *sechdrs = info->sechdrs;
sechdrs          2634 kernel/module.c 	if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR)
sechdrs          2636 kernel/module.c 	if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC
sechdrs          2637 kernel/module.c 	    && sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) {
sechdrs          2638 kernel/module.c 		if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE))
sechdrs          2640 kernel/module.c 		else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL)
sechdrs          2645 kernel/module.c 	if (sechdrs[sym->st_shndx].sh_type == SHT_NOBITS) {
sechdrs          2646 kernel/module.c 		if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL)
sechdrs          2651 kernel/module.c 	if (strstarts(info->secstrings + sechdrs[sym->st_shndx].sh_name,
sechdrs          2658 kernel/module.c static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs,
sechdrs          2673 kernel/module.c 	sec = sechdrs + src->st_shndx;
sechdrs          2693 kernel/module.c 	Elf_Shdr *symsect = info->sechdrs + info->index.sym;
sechdrs          2694 kernel/module.c 	Elf_Shdr *strsect = info->sechdrs + info->index.str;
sechdrs          2710 kernel/module.c 		    is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum,
sechdrs          2752 kernel/module.c 	Elf_Shdr *symsec = &info->sechdrs[info->index.sym];
sechdrs          2760 kernel/module.c 	mod->kallsyms->strtab = (void *)info->sechdrs[info->index.str].sh_addr;
sechdrs          2774 kernel/module.c 		    is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum,
sechdrs          2830 kernel/module.c 		if (!(info->sechdrs[i].sh_flags & SHF_ALLOC) ||
sechdrs          2831 kernel/module.c 		    !(info->sechdrs[i].sh_flags & SHF_WRITE) ||
sechdrs          2832 kernel/module.c 		    (info->sechdrs[i].sh_flags & SHF_EXECINSTR))
sechdrs          2835 kernel/module.c 		kmemleak_scan_area((void *)info->sechdrs[i].sh_addr,
sechdrs          2836 kernel/module.c 				   info->sechdrs[i].sh_size, GFP_KERNEL);
sechdrs          3015 kernel/module.c 	info->sechdrs[0].sh_addr = 0;
sechdrs          3018 kernel/module.c 		Elf_Shdr *shdr = &info->sechdrs[i];
sechdrs          3037 kernel/module.c 	info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC;
sechdrs          3038 kernel/module.c 	info->sechdrs[info->index.info].sh_flags &= ~(unsigned long)SHF_ALLOC;
sechdrs          3056 kernel/module.c 	info->sechdrs = (void *)info->hdr + info->hdr->e_shoff;
sechdrs          3058 kernel/module.c 		+ info->sechdrs[info->hdr->e_shstrndx].sh_offset;
sechdrs          3067 kernel/module.c 		if (info->sechdrs[i].sh_type == SHT_SYMTAB) {
sechdrs          3069 kernel/module.c 			info->index.str = info->sechdrs[i].sh_link;
sechdrs          3071 kernel/module.c 				+ info->sechdrs[info->index.str].sh_offset;
sechdrs          3089 kernel/module.c 	info->mod = (void *)info->hdr + info->sechdrs[info->index.mod].sh_offset;
sechdrs          3293 kernel/module.c 		Elf_Shdr *shdr = &info->sechdrs[i];
sechdrs          3380 kernel/module.c 				     Elf_Shdr *sechdrs,
sechdrs          3419 kernel/module.c 	err = module_frob_arch_sections(info->hdr, info->sechdrs,
sechdrs          3425 kernel/module.c 	info->sechdrs[info->index.pcpu].sh_flags &= ~(unsigned long)SHF_ALLOC;
sechdrs          3434 kernel/module.c 		info->sechdrs[ndx].sh_flags |= SHF_RO_AFTER_INIT;
sechdrs          3443 kernel/module.c 		info->sechdrs[ndx].sh_flags |= SHF_RO_AFTER_INIT;
sechdrs          3457 kernel/module.c 	mod = (void *)info->sechdrs[info->index.mod].sh_addr;
sechdrs          3472 kernel/module.c 			   const Elf_Shdr *sechdrs,
sechdrs          3484 kernel/module.c 	percpu_modcopy(mod, (void *)info->sechdrs[info->index.pcpu].sh_addr,
sechdrs          3485 kernel/module.c 		       info->sechdrs[info->index.pcpu].sh_size);
sechdrs          3491 kernel/module.c 	return module_finalize(info->hdr, info->sechdrs, mod);
sechdrs          3733 kernel/module.c 	module_bug_finalize(info->hdr, info->sechdrs, mod);
sechdrs            87 lib/bug.c      void module_bug_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
sechdrs            99 lib/bug.c      	secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
sechdrs           101 lib/bug.c      		if (strcmp(secstrings+sechdrs[i].sh_name, "__bug_table"))
sechdrs           103 lib/bug.c      		mod->bug_table = (void *) sechdrs[i].sh_addr;
sechdrs           104 lib/bug.c      		mod->num_bugs = sechdrs[i].sh_size / sizeof(struct bug_entry);
sechdrs          1446 scripts/mod/file2alias.c 	if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) {
sechdrs          1451 scripts/mod/file2alias.c 			+ info->sechdrs[get_secindex(info, sym)].sh_offset
sechdrs           306 scripts/mod/modpost.c 		elf->sechdrs[elf->secindex_strings].sh_offset +
sechdrs           312 scripts/mod/modpost.c 	return sech_name(elf, &elf->sechdrs[secindex]);
sechdrs           484 scripts/mod/modpost.c 	Elf_Shdr *sechdrs;
sechdrs           526 scripts/mod/modpost.c 	sechdrs = (void *)hdr + hdr->e_shoff;
sechdrs           527 scripts/mod/modpost.c 	info->sechdrs = sechdrs;
sechdrs           542 scripts/mod/modpost.c 		info->num_sections = TO_NATIVE(sechdrs[0].sh_size);
sechdrs           548 scripts/mod/modpost.c 		info->secindex_strings = TO_NATIVE(sechdrs[0].sh_link);
sechdrs           556 scripts/mod/modpost.c 		sechdrs[i].sh_name      = TO_NATIVE(sechdrs[i].sh_name);
sechdrs           557 scripts/mod/modpost.c 		sechdrs[i].sh_type      = TO_NATIVE(sechdrs[i].sh_type);
sechdrs           558 scripts/mod/modpost.c 		sechdrs[i].sh_flags     = TO_NATIVE(sechdrs[i].sh_flags);
sechdrs           559 scripts/mod/modpost.c 		sechdrs[i].sh_addr      = TO_NATIVE(sechdrs[i].sh_addr);
sechdrs           560 scripts/mod/modpost.c 		sechdrs[i].sh_offset    = TO_NATIVE(sechdrs[i].sh_offset);
sechdrs           561 scripts/mod/modpost.c 		sechdrs[i].sh_size      = TO_NATIVE(sechdrs[i].sh_size);
sechdrs           562 scripts/mod/modpost.c 		sechdrs[i].sh_link      = TO_NATIVE(sechdrs[i].sh_link);
sechdrs           563 scripts/mod/modpost.c 		sechdrs[i].sh_info      = TO_NATIVE(sechdrs[i].sh_info);
sechdrs           564 scripts/mod/modpost.c 		sechdrs[i].sh_addralign = TO_NATIVE(sechdrs[i].sh_addralign);
sechdrs           565 scripts/mod/modpost.c 		sechdrs[i].sh_entsize   = TO_NATIVE(sechdrs[i].sh_entsize);
sechdrs           568 scripts/mod/modpost.c 	secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset;
sechdrs           571 scripts/mod/modpost.c 		int nobits = sechdrs[i].sh_type == SHT_NOBITS;
sechdrs           573 scripts/mod/modpost.c 		if (!nobits && sechdrs[i].sh_offset > info->size) {
sechdrs           576 scripts/mod/modpost.c 			      (unsigned long)sechdrs[i].sh_offset,
sechdrs           580 scripts/mod/modpost.c 		secname = secstrings + sechdrs[i].sh_name;
sechdrs           584 scripts/mod/modpost.c 			info->modinfo = (void *)hdr + sechdrs[i].sh_offset;
sechdrs           585 scripts/mod/modpost.c 			info->modinfo_len = sechdrs[i].sh_size;
sechdrs           598 scripts/mod/modpost.c 						sechdrs[i].sh_offset -
sechdrs           599 scripts/mod/modpost.c 						sechdrs[i].sh_addr;
sechdrs           601 scripts/mod/modpost.c 		if (sechdrs[i].sh_type == SHT_SYMTAB) {
sechdrs           605 scripts/mod/modpost.c 			    sechdrs[i].sh_offset;
sechdrs           607 scripts/mod/modpost.c 			    sechdrs[i].sh_offset + sechdrs[i].sh_size;
sechdrs           608 scripts/mod/modpost.c 			sh_link_idx = sechdrs[i].sh_link;
sechdrs           610 scripts/mod/modpost.c 			    sechdrs[sh_link_idx].sh_offset;
sechdrs           614 scripts/mod/modpost.c 		if (sechdrs[i].sh_type == SHT_SYMTAB_SHNDX) {
sechdrs           617 scripts/mod/modpost.c 			    sechdrs[i].sh_offset;
sechdrs           619 scripts/mod/modpost.c 			    sechdrs[i].sh_offset + sechdrs[i].sh_size;
sechdrs           635 scripts/mod/modpost.c 		if (symtab_idx != sechdrs[symtab_shndx_idx].sh_link)
sechdrs           637 scripts/mod/modpost.c 			      filename, sechdrs[symtab_shndx_idx].sh_link,
sechdrs           705 scripts/mod/modpost.c 			       info->sechdrs[sym->st_shndx].sh_offset -
sechdrs           707 scripts/mod/modpost.c 				info->sechdrs[sym->st_shndx].sh_addr : 0);
sechdrs          1634 scripts/mod/modpost.c 	return ((elf->sechdrs[section_index].sh_flags & SHF_EXECINSTR) == SHF_EXECINSTR);
sechdrs          1767 scripts/mod/modpost.c 	Elf_Shdr *sechdrs = elf->sechdrs;
sechdrs          1770 scripts/mod/modpost.c 	return (void *)elf->hdr + sechdrs[section].sh_offset +
sechdrs          1982 scripts/mod/modpost.c 	Elf_Shdr *sechdrs = elf->sechdrs;
sechdrs          1986 scripts/mod/modpost.c 		check_section(modname, elf, &elf->sechdrs[i]);
sechdrs          1988 scripts/mod/modpost.c 		if (sechdrs[i].sh_type == SHT_RELA)
sechdrs          1989 scripts/mod/modpost.c 			section_rela(modname, elf, &elf->sechdrs[i]);
sechdrs          1990 scripts/mod/modpost.c 		else if (sechdrs[i].sh_type == SHT_REL)
sechdrs          1991 scripts/mod/modpost.c 			section_rel(modname, elf, &elf->sechdrs[i]);
sechdrs           138 scripts/mod/modpost.h 	Elf_Shdr     *sechdrs;