| /Linux-v4.19/arch/powerpc/kernel/ |
| D | kexec_elf_64.c | 127 if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) { in elf_is_ehdr_sane() 137 if (ehdr->e_shoff + shdr_size < ehdr->e_shoff) { in elf_is_ehdr_sane() 140 } else if (ehdr->e_shoff + shdr_size > buf_len) { in elf_is_ehdr_sane() 185 ehdr->e_shoff = elf_addr_to_cpu(ehdr, buf_ehdr->e_shoff); in elf_read_ehdr() 351 sbuf = buf + ehdr->e_shoff + idx * sizeof(*buf_shdr); in elf_read_shdr() 438 if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) { in elf_read_from_buffer()
|
| D | vdso.c | 266 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section32() 371 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section64()
|
| /Linux-v4.19/scripts/ |
| D | insert-sys-cert.c | 73 x = (void *)hdr + hdr->e_shoff; in get_offset_from_address() 141 x = (void *)hdr + hdr->e_shoff; in find_elf_symbol() 165 x = (void *)hdr + hdr->e_shoff; in get_symbol_from_table() 189 x = (void *)hdr + hdr->e_shoff; in get_symbol_table() 341 if (hdr->e_shoff > vmlinux_size) { in main()
|
| D | recordmcount.h | 193 uint_t const old_shoff = _w(ehdr->e_shoff); in append_func() 248 ehdr->e_shoff = _w(new_e_shoff); in append_func() 282 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp() 358 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in nop_mcount() 505 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in do_func()
|
| D | sortextable.h | 117 shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_func()
|
| /Linux-v4.19/arch/x86/entry/vdso/ |
| D | vdso2c.h | 69 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 73 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 86 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC()
|
| /Linux-v4.19/arch/powerpc/boot/ |
| D | elf.h | 62 Elf32_Off e_shoff; member 79 Elf64_Off e_shoff; /* Section header table file offset */ member
|
| /Linux-v4.19/arch/mips/vdso/ |
| D | genvdso.h | 19 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in FUNC() 73 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in FUNC()
|
| /Linux-v4.19/arch/sparc/vdso/ |
| D | vdso2c.h | 67 ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC() 76 strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC()
|
| /Linux-v4.19/drivers/remoteproc/ |
| D | remoteproc_elf_loader.c | 78 if (fw->size < ehdr->e_shoff + sizeof(struct elf32_shdr)) { 221 shdr = (struct elf32_shdr *)(elf_data + ehdr->e_shoff);
|
| /Linux-v4.19/include/uapi/linux/ |
| D | elf.h | 211 Elf32_Off e_shoff; member 228 Elf64_Off e_shoff; /* Section header table file offset */ member
|
| /Linux-v4.19/arch/mips/boot/tools/ |
| D | relocs.c | 229 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff); in read_ehdr() 269 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs() 270 die("Seek to %d failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_shdrs()
|
| /Linux-v4.19/fs/ |
| D | binfmt_elf_fdpic.c | 1308 elf->e_shoff = 0; in fill_elf_fdpic_header() 1479 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument 1481 elf->e_shoff = e_shoff; in fill_extnum_info() 1577 elf_addr_t e_shoff; in elf_fdpic_core_dump() local 1713 e_shoff = offset; in elf_fdpic_core_dump() 1719 fill_extnum_info(elf, shdr4extnum, e_shoff, segs); in elf_fdpic_core_dump()
|
| D | binfmt_elf.c | 2190 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument 2192 elf->e_shoff = e_shoff; in fill_extnum_info() 2225 elf_addr_t e_shoff; in elf_core_dump() local 2312 e_shoff = offset; in elf_core_dump() 2318 fill_extnum_info(elf, shdr4extnum, e_shoff, segs); in elf_core_dump()
|
| /Linux-v4.19/arch/x86/tools/ |
| D | relocs.c | 359 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff); in read_ehdr() 401 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) { in read_shdrs() 403 ehdr.e_shoff, strerror(errno)); in read_shdrs()
|
| /Linux-v4.19/arch/mips/boot/ |
| D | elf2ecoff.c | 176 e->e_shoff = swab32(e->e_shoff); in convert_elf_hdr() 335 sh = (Elf32_Shdr *) saveRead(infile, ex.e_shoff, in main()
|
| /Linux-v4.19/kernel/ |
| D | kexec_file.c | 732 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_purgatory_setup_kbuf() 799 memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, in kexec_purgatory_setup_sechdrs() 849 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_apply_relocations() 966 sechdrs = (void *)ehdr + ehdr->e_shoff; in kexec_purgatory_find_symbol()
|
| D | module.c | 2812 if (info->hdr->e_shoff >= info->len in elf_header_check() 2814 info->len - info->hdr->e_shoff)) in elf_header_check() 2950 info->sechdrs = (void *)info->hdr + info->hdr->e_shoff; in setup_load_info()
|
| /Linux-v4.19/arch/powerpc/oprofile/cell/ |
| D | vma_map.c | 154 shdr_start = spu_elf_start + ehdr.e_shoff; in create_vma_map()
|
| /Linux-v4.19/arch/arm/kernel/ |
| D | vdso.c | 128 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section()
|
| /Linux-v4.19/arch/mips/kernel/ |
| D | vpe.c | 605 if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) { in vpe_elfload() 612 sechdrs = (void *)hdr + hdr->e_shoff; in vpe_elfload()
|
| /Linux-v4.19/scripts/mod/ |
| D | modpost.c | 458 hdr->e_shoff = TO_NATIVE(hdr->e_shoff); in parse_elf() 466 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf() 470 if (hdr->e_shoff > info->size) { in parse_elf() 472 "filesize=%lu\n", (unsigned long)hdr->e_shoff, in parse_elf()
|
| /Linux-v4.19/arch/x86/kernel/ |
| D | machine_kexec_64.c | 409 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in arch_kexec_apply_relocations_add()
|
| /Linux-v4.19/sound/pci/mixart/ |
| D | mixart_hwdep.c | 81 __be32 e_shoff; member
|
| /Linux-v4.19/drivers/media/platform/sti/c8sectpfe/ |
| D | c8sectpfe-core.c | 991 if (fw->size < ehdr->e_shoff + sizeof(struct elf32_shdr)) { in c8sectpfe_elf_sanity_check()
|