Home
last modified time | relevance | path

Searched refs:sechdr (Results 1 – 7 of 7) sorted by relevance

/linux/kernel/module/
H A Dkallsyms.c230 const Elf_Shdr *sechdr; in init_build_id() local
234 sechdr = &info->sechdrs[i]; in init_build_id()
235 if (!sect_empty(sechdr) && sechdr->sh_type == SHT_NOTE && in init_build_id()
236 !build_id_parse_buf((void *)sechdr->sh_addr, mod->build_id, in init_build_id()
237 sechdr->sh_size)) in init_build_id()
H A Dinternal.h111 Elf_Shdr *sechdr, unsigned int section);
H A Dmain.c1495 Elf_Shdr *sechdr, unsigned int section) in module_init_layout_section()
1501 offset = ALIGN(mod->mem[type].size, sechdr->sh_addralign ?: 1); in module_init_layout_section()
1502 mod->mem[type].size = offset + sechdr->sh_size; in module_init_layout_section()
1482 module_get_offset_and_type(struct module * mod,enum mod_mem_type type,Elf_Shdr * sechdr,unsigned int section) module_get_offset_and_type() argument
/linux/net/rxrpc/
H A Drxkad.c412 struct rxkad_level1_hdr sechdr; in rxkad_verify_packet_1() local
444 if (skb_copy_bits(skb, sp->offset, &sechdr, sizeof(sechdr)) < 0) in rxkad_verify_packet_1()
447 sp->offset += sizeof(sechdr); in rxkad_verify_packet_1()
448 sp->len -= sizeof(sechdr); in rxkad_verify_packet_1()
450 buf = ntohl(sechdr.data_size); in rxkad_verify_packet_1()
476 struct rxkad_level2_hdr sechdr; in rxkad_verify_packet_2() local
524 if (skb_copy_bits(skb, sp->offset, &sechdr, sizeof(sechdr)) < 0) in rxkad_verify_packet_2()
527 sp->offset += sizeof(sechdr); in rxkad_verify_packet_2()
528 sp->len -= sizeof(sechdr); in rxkad_verify_packet_2()
530 buf = ntohl(sechdr.data_size); in rxkad_verify_packet_2()
/linux/scripts/mod/
H A Dmodpost.c343 sechdr->sh_name); in sech_name()
761 Elf_Shdr *sechdr) in check_section() argument
763 const char *sec = sech_name(elf, sechdr); in check_section()
765 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
766 !(sechdr->sh_flags & SHF_ALLOC) && in check_section()
1474 Elf_Shdr *sechdr = &elf->sechdrs[i]; in check_sec_ref() local
1476 check_section(mod->name, elf, sechdr); in check_sec_ref()
1478 if (sechdr->sh_type == SHT_REL || sechdr->sh_type == SHT_RELA) { in check_sec_ref()
1480 unsigned int secndx = sechdr->sh_info; in check_sec_ref()
1489 stop = start + sechdr->sh_size; in check_sec_ref()
[all …]
/linux/arch/mips/kernel/
H A Dvpe.c169 static long get_offset(unsigned long *size, Elf_Shdr *sechdr) in get_offset() argument
173 ret = ALIGN(*size, sechdr->sh_addralign ? : 1); in get_offset()
174 *size = ret + sechdr->sh_size; in get_offset()
/linux/kernel/
H A Dkexec_file.c1124 Elf_Shdr *sechdr; in kexec_purgatory_get_symbol_addr() local
1130 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr()
1136 return (void *)(sechdr->sh_addr + sym->st_value); in kexec_purgatory_get_symbol_addr()