Home
last modified time | relevance | path

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

/linux-6.15/kernel/module/
H A Dkallsyms.c227 const Elf_Shdr *sechdr; in init_build_id() local
231 sechdr = &info->sechdrs[i]; in init_build_id()
232 if (!sect_empty(sechdr) && sechdr->sh_type == SHT_NOTE && in init_build_id()
233 !build_id_parse_buf((void *)sechdr->sh_addr, mod->build_id, in init_build_id()
234 sechdr->sh_size)) in init_build_id()
H A Dinternal.h118 Elf_Shdr *sechdr, unsigned int section);
H A Dmain.c1539 Elf_Shdr *sechdr, unsigned int section) in module_get_offset_and_type() argument
1545 offset = ALIGN(mod->mem[type].size, sechdr->sh_addralign ?: 1); in module_get_offset_and_type()
1546 mod->mem[type].size = offset + sechdr->sh_size; in module_get_offset_and_type()
/linux-6.15/net/rxrpc/
H A Drxkad.c426 struct rxkad_level1_hdr sechdr; in rxkad_verify_packet_1() local
458 if (skb_copy_bits(skb, sp->offset, &sechdr, sizeof(sechdr)) < 0) in rxkad_verify_packet_1()
461 sp->offset += sizeof(sechdr); in rxkad_verify_packet_1()
462 sp->len -= sizeof(sechdr); in rxkad_verify_packet_1()
464 buf = ntohl(sechdr.data_size); in rxkad_verify_packet_1()
490 struct rxkad_level2_hdr sechdr; in rxkad_verify_packet_2() local
538 if (skb_copy_bits(skb, sp->offset, &sechdr, sizeof(sechdr)) < 0) in rxkad_verify_packet_2()
541 sp->offset += sizeof(sechdr); in rxkad_verify_packet_2()
542 sp->len -= sizeof(sechdr); in rxkad_verify_packet_2()
544 buf = ntohl(sechdr.data_size); in rxkad_verify_packet_2()
/linux-6.15/scripts/mod/
H A Dmodpost.c333 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()
1426 Elf_Shdr *sechdr = &elf->sechdrs[i]; in check_sec_ref() local
1428 check_section(mod->name, elf, sechdr); in check_sec_ref()
1430 if (sechdr->sh_type == SHT_REL || sechdr->sh_type == SHT_RELA) { in check_sec_ref()
1432 unsigned int secndx = sechdr->sh_info; in check_sec_ref()
1441 stop = start + sechdr->sh_size; in check_sec_ref()
[all …]
/linux-6.15/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-6.15/kernel/
H A Dkexec_file.c1141 Elf_Shdr *sechdr; in kexec_purgatory_get_symbol_addr() local
1147 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr()
1153 return (void *)(sechdr->sh_addr + sym->st_value); in kexec_purgatory_get_symbol_addr()