Home
last modified time | relevance | path

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

12

/linux/arch/s390/tools/
H A Drelocs.c137 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff); in read_ehdr()
165 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_ehdr()
166 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_ehdr()
191 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs()
192 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_shdrs()
/linux/scripts/
H A 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()
H A Drecordmcount.h272 uint_t const old_shoff = _w(ehdr->e_shoff); in append_func()
342 ehdr->e_shoff = _w(new_e_shoff); in append_func()
378 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
455 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in nop_mcount()
609 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in do_func()
H A Delf-parse.h62 return elf_parser.r8(&ehdr->e64.e_shoff); in ehdr64_shoff()
67 return elf_parser.r(&ehdr->e32.e_shoff); in ehdr32_shoff()
/linux/arch/powerpc/boot/
H A Delf.h62 Elf32_Off e_shoff; member
79 Elf64_Off e_shoff; /* Section header table file offset */ member
/linux/arch/mips/vdso/
H A Dgenvdso.h15 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in FUNC()
69 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in FUNC()
/linux/arch/sparc/vdso/
H A 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()
H A 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/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/
H A Dgh100.c199 const struct elf32_shdr *shdr = elf + ehdr->e_shoff; in elf_validate_sections()
202 Elf32_Off section_begin = ehdr->e_shoff + ehdr->e_shnum * ehdr->e_shentsize; in elf_validate_sections()
249 const struct elf32_shdr *shdr = elf + ehdr->e_shoff; in elf_section()
/linux/arch/x86/tools/
H A Drelocs.c365 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff); in read_ehdr()
394 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_ehdr()
395 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_ehdr()
420 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs()
421 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_shdrs()
/linux/arch/mips/boot/tools/
H A Drelocs.c230 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff); in read_ehdr()
270 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs()
271 die("Seek to %d failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_shdrs()
/linux/fs/
H A Dbinfmt_elf_fdpic.c1260 elf->e_shoff = 0; in fill_elf_fdpic_header()
1435 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument
1437 elf->e_shoff = e_shoff; in fill_extnum_info()
1490 elf_addr_t e_shoff; in elf_fdpic_core_dump() local
1568 e_shoff = offset; in elf_fdpic_core_dump()
1574 fill_extnum_info(elf, shdr4extnum, e_shoff, segs); in elf_fdpic_core_dump()
H A Dbinfmt_elf.c1972 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument
1974 elf->e_shoff = e_shoff; in fill_extnum_info()
2004 elf_addr_t e_shoff; in elf_core_dump() local
2051 e_shoff = offset; in elf_core_dump()
2057 fill_extnum_info(&elf, shdr4extnum, e_shoff, segs); in elf_core_dump()
/linux/kernel/
H A Dkexec_file.c905 sechdrs = (void *)ehdr + ehdr->e_shoff; in kexec_purgatory_setup_kbuf()
958 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_purgatory_setup_sechdrs()
1031 memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, sechdrs_size); in kexec_apply_relocations()
1106 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_load_purgatory()
/linux/arch/arm64/kernel/pi/
H A Drelacheck.c73 shdr = (void *)ehdr + swab_elfxword(ehdr->e_shoff); in main()
/linux/arch/mips/boot/
H A 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/arch/s390/kernel/
H A Dvdso.c150 shdr = (void *)hdr + hdr->e_shoff; in vdso_apply_alternatives()
/linux/drivers/remoteproc/
H A Dremoteproc_elf_helpers.h61 ELF_GEN_FIELD_GET_SET(hdr, e_shoff, u64) in ELF_GEN_FIELD_GET_SET()
/linux/arch/arm/kernel/
H A Dvdso.c97 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section()
/linux/arch/riscv/kernel/
H A Dalternative.c185 shdr = (void *)hdr + hdr->e_shoff; in apply_vdso_alternatives()
/linux/tools/testing/selftests/proc/
H A Dproc-pid-vm.c92 uint64_t e_shoff; member
182 h.e_shoff = 0; in make_exe()
/linux/arch/mips/tools/
H A Dloongson3-llsc-check.c286 sh = vmlinux + le64toh(eh->e_shoff) + (i * le16toh(eh->e_shentsize)); in main()
/linux/arch/arm64/kernel/
H A Dalternative.c214 shdr = (void *)hdr + hdr->e_shoff; in apply_alternatives_vdso()
/linux/scripts/mod/
H A Dmodpost.c455 hdr->e_shoff = TO_NATIVE(hdr->e_shoff); in parse_elf()
463 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf()
471 if (hdr->e_shoff > info->size) in parse_elf()
473 (unsigned long)hdr->e_shoff, filename, info->size); in parse_elf()
/linux/arch/mips/kernel/
H A 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()

12