Home
last modified time | relevance | path

Searched refs:e_shoff (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.10/kernel/
Dkexec_elf.c97 if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) { in elf_is_ehdr_sane()
107 if (ehdr->e_shoff + shdr_size < ehdr->e_shoff) { in elf_is_ehdr_sane()
110 } else if (ehdr->e_shoff + shdr_size > buf_len) { in elf_is_ehdr_sane()
164 ehdr->e_shoff = elf64_to_cpu(ehdr, buf_ehdr->e_shoff); in elf_read_ehdr()
170 ehdr->e_shoff = elf32_to_cpu(ehdr, buf_ehdr->e_shoff); in elf_read_ehdr()
Dkexec_file.c840 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_purgatory_setup_kbuf()
907 memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, in kexec_purgatory_setup_sechdrs()
957 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_apply_relocations()
1074 sechdrs = (void *)ehdr + ehdr->e_shoff; in kexec_purgatory_find_symbol()
/Linux-v5.10/scripts/
Dinsert-sys-cert.c73 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()
Drecordmcount.h267 uint_t const old_shoff = _w(ehdr->e_shoff); in append_func()
337 ehdr->e_shoff = _w(new_e_shoff); in append_func()
373 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
450 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in nop_mcount()
604 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in do_func()
Dsorttable.h200 Elf_Shdr *s, *shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_sort()
/Linux-v5.10/arch/x86/entry/vdso/
Dvdso2c.h68 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC()
72 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC()
85 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC()
/Linux-v5.10/arch/powerpc/boot/
Delf.h62 Elf32_Off e_shoff; member
79 Elf64_Off e_shoff; /* Section header table file offset */ member
/Linux-v5.10/arch/mips/vdso/
Dgenvdso.h15 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in FUNC()
69 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in FUNC()
/Linux-v5.10/arch/sparc/vdso/
Dvdso2c.h66 ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC()
75 strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC()
Dvma.c75 shdrs = (void *)e->hdr + e->hdr->e_shoff; in one_section64()
143 shdrs = (void *)e->hdr + e->hdr->e_shoff; in one_section32()
/Linux-v5.10/arch/x86/tools/
Drelocs.c362 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff); in read_ehdr()
391 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_ehdr()
392 die("Seek to %d failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_ehdr()
418 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) { in read_shdrs()
420 ehdr.e_shoff, strerror(errno)); in read_shdrs()
/Linux-v5.10/include/uapi/linux/
Delf.h212 Elf32_Off e_shoff; member
229 Elf64_Off e_shoff; /* Section header table file offset */ member
/Linux-v5.10/arch/mips/boot/tools/
Drelocs.c229 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-v5.10/drivers/remoteproc/
Dremoteproc_elf_helpers.h61 ELF_GEN_FIELD_GET_SET(hdr, e_shoff, u64)
/Linux-v5.10/fs/
Dbinfmt_elf_fdpic.c1266 elf->e_shoff = 0; in fill_elf_fdpic_header()
1439 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument
1441 elf->e_shoff = e_shoff; in fill_extnum_info()
1494 elf_addr_t e_shoff; in elf_fdpic_core_dump() local
1577 e_shoff = offset; in elf_fdpic_core_dump()
1583 fill_extnum_info(elf, shdr4extnum, e_shoff, segs); in elf_fdpic_core_dump()
Dbinfmt_elf.c2132 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument
2134 elf->e_shoff = e_shoff; in fill_extnum_info()
2165 elf_addr_t e_shoff; in elf_core_dump() local
2215 e_shoff = offset; in elf_core_dump()
2221 fill_extnum_info(&elf, shdr4extnum, e_shoff, segs); in elf_core_dump()
/Linux-v5.10/tools/testing/selftests/proc/
Dproc-pid-vm.c85 uint64_t e_shoff; member
175 h.e_shoff = 0; in make_exe()
/Linux-v5.10/arch/mips/boot/
Delf2ecoff.c176 e->e_shoff = swab32(e->e_shoff); in convert_elf_hdr()
335 sh = (Elf32_Shdr *) saveRead(infile, ex.e_shoff, in main()
/Linux-v5.10/arch/mips/tools/
Dloongson3-llsc-check.c286 sh = vmlinux + le64toh(eh->e_shoff) + (i * le16toh(eh->e_shentsize)); in main()
/Linux-v5.10/arch/arm/kernel/
Dvdso.c121 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section()
/Linux-v5.10/arch/powerpc/oprofile/cell/
Dvma_map.c150 shdr_start = spu_elf_start + ehdr.e_shoff; in create_vma_map()
/Linux-v5.10/arch/powerpc/kernel/
Dvdso.c239 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section32()
344 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section64()
/Linux-v5.10/arch/mips/kernel/
Dvpe.c605 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-v5.10/scripts/mod/
Dmodpost.c520 hdr->e_shoff = TO_NATIVE(hdr->e_shoff); in parse_elf()
528 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf()
532 if (hdr->e_shoff > info->size) { in parse_elf()
534 (unsigned long)hdr->e_shoff, filename, info->size); in parse_elf()
/Linux-v5.10/arch/x86/kernel/
Dmachine_kexec_64.c440 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in arch_kexec_apply_relocations_add()

12