Home
last modified time | relevance | path

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

/openbmc/qemu/bsd-user/
H A Delfload.c399 struct elf_shdr sechdr, symtab, strtab; in load_symbols() local
406 if (read(fd, &sechdr, sizeof(sechdr)) != sizeof(sechdr)) { in load_symbols()
409 bswap_shdr(&sechdr, 1); in load_symbols()
410 if (sechdr.sh_type == SHT_SYMTAB) { in load_symbols()
411 symtab = sechdr; in load_symbols()
412 lseek(fd, hdr->e_shoff + sizeof(sechdr) * sechdr.sh_link, in load_symbols()
/openbmc/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.c1482 Elf_Shdr *sechdr, unsigned int section) in module_get_offset_and_type() argument
1488 offset = ALIGN(mod->mem[type].size, sechdr->sh_addralign ?: 1); in module_get_offset_and_type()
1489 mod->mem[type].size = offset + sechdr->sh_size; in module_get_offset_and_type()
/openbmc/linux/net/rxrpc/
H A Drxkad.c410 struct rxkad_level1_hdr sechdr; in rxkad_verify_packet_1() local
442 if (skb_copy_bits(skb, sp->offset, &sechdr, sizeof(sechdr)) < 0) in rxkad_verify_packet_1()
445 sp->offset += sizeof(sechdr); in rxkad_verify_packet_1()
446 sp->len -= sizeof(sechdr); in rxkad_verify_packet_1()
448 buf = ntohl(sechdr.data_size); in rxkad_verify_packet_1()
474 struct rxkad_level2_hdr sechdr; in rxkad_verify_packet_2() local
522 if (skb_copy_bits(skb, sp->offset, &sechdr, sizeof(sechdr)) < 0) in rxkad_verify_packet_2()
525 sp->offset += sizeof(sechdr); in rxkad_verify_packet_2()
526 sp->len -= sizeof(sechdr); in rxkad_verify_packet_2()
528 buf = ntohl(sechdr.data_size); in rxkad_verify_packet_2()
/openbmc/linux/scripts/mod/
H A Dmodpost.c337 Elf_Shdr *sechdr = &info->sechdrs[secindex]; in sym_get_data_by_offset() local
351 sechdr->sh_name); in sech_name()
777 Elf_Shdr *sechdr) in check_section() argument
779 const char *sec = sech_name(elf, sechdr); in check_section()
781 if (sechdr->sh_type == SHT_PROGBITS && in check_section()
782 !(sechdr->sh_flags & SHF_ALLOC) && in check_section()
1425 Elf_Shdr *sechdr) in section_rela() argument
1428 unsigned int fsecndx = sechdr->sh_info; in section_rela()
1467 Elf_Shdr *sechdr) in section_rel() argument
1470 unsigned int fsecndx = sechdr->sh_info; in section_rel()
[all …]
/openbmc/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()
/openbmc/linux/kernel/
H A Dkexec_file.c1105 Elf_Shdr *sechdr; in kexec_purgatory_get_symbol_addr() local
1111 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr()
1117 return (void *)(sechdr->sh_addr + sym->st_value); in kexec_purgatory_get_symbol_addr()