/linux-6.12.1/kernel/ |
D | kexec_elf.c | 97 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()
|
D | kexec_file.c | 843 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_purgatory_setup_kbuf() 912 memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, sechdrs_size); in kexec_purgatory_setup_sechdrs() 973 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_apply_relocations() 1090 sechdrs = (void *)ehdr + ehdr->e_shoff; in kexec_purgatory_find_symbol()
|
/linux-6.12.1/arch/s390/tools/ |
D | relocs.c | 137 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-6.12.1/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 | 272 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()
|
/linux-6.12.1/arch/powerpc/boot/ |
D | elf.h | 62 Elf32_Off e_shoff; member 79 Elf64_Off e_shoff; /* Section header table file offset */ member
|
/linux-6.12.1/arch/x86/entry/vdso/ |
D | vdso2c.h | 103 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 107 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC() 122 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in BITSFUNC()
|
/linux-6.12.1/arch/mips/vdso/ |
D | genvdso.h | 15 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in FUNC() 69 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in FUNC()
|
/linux-6.12.1/arch/sparc/vdso/ |
D | vdso2c.h | 66 ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC() 75 strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) + in BITSFUNC()
|
D | vma.c | 75 shdrs = (void *)e->hdr + e->hdr->e_shoff; in one_section64() 143 shdrs = (void *)e->hdr + e->hdr->e_shoff; in one_section32()
|
/linux-6.12.1/arch/x86/tools/ |
D | relocs.c | 390 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff); in read_ehdr() 419 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_ehdr() 420 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_ehdr() 445 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs() 446 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno)); in read_shdrs()
|
/linux-6.12.1/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-6.12.1/include/uapi/linux/ |
D | elf.h | 216 Elf32_Off e_shoff; member 233 Elf64_Off e_shoff; /* Section header table file offset */ member
|
/linux-6.12.1/fs/ |
D | binfmt_elf_fdpic.c | 1244 elf->e_shoff = 0; in fill_elf_fdpic_header() 1418 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument 1420 elf->e_shoff = e_shoff; in fill_extnum_info() 1473 elf_addr_t e_shoff; in elf_fdpic_core_dump() local 1551 e_shoff = offset; in elf_fdpic_core_dump() 1557 fill_extnum_info(elf, shdr4extnum, e_shoff, segs); in elf_fdpic_core_dump()
|
D | binfmt_elf.c | 1983 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument 1985 elf->e_shoff = e_shoff; in fill_extnum_info() 2015 elf_addr_t e_shoff; in elf_core_dump() local 2062 e_shoff = offset; in elf_core_dump() 2068 fill_extnum_info(&elf, shdr4extnum, e_shoff, segs); in elf_core_dump()
|
/linux-6.12.1/arch/arm64/kernel/pi/ |
D | relacheck.c | 73 shdr = (void *)ehdr + swab_elfxword(ehdr->e_shoff); in main()
|
/linux-6.12.1/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-6.12.1/drivers/remoteproc/ |
D | remoteproc_elf_helpers.h | 61 ELF_GEN_FIELD_GET_SET(hdr, e_shoff, u64) in ELF_GEN_FIELD_GET_SET()
|
/linux-6.12.1/arch/riscv/kernel/ |
D | alternative.c | 180 shdr = (void *)hdr + hdr->e_shoff; in apply_vdso_alternatives()
|
/linux-6.12.1/arch/arm/kernel/ |
D | vdso.c | 108 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section()
|
/linux-6.12.1/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 88 uint64_t e_shoff; member 178 h.e_shoff = 0; in make_exe()
|
/linux-6.12.1/arch/mips/tools/ |
D | loongson3-llsc-check.c | 286 sh = vmlinux + le64toh(eh->e_shoff) + (i * le16toh(eh->e_shentsize)); in main()
|
/linux-6.12.1/arch/arm64/kernel/ |
D | alternative.c | 209 shdr = (void *)hdr + hdr->e_shoff; in apply_alternatives_vdso()
|
/linux-6.12.1/arch/s390/kernel/ |
D | vdso.c | 257 shdr = (void *)hdr + hdr->e_shoff; in vdso_apply_alternatives()
|
/linux-6.12.1/scripts/mod/ |
D | modpost.c | 449 hdr->e_shoff = TO_NATIVE(hdr->e_shoff); in parse_elf() 457 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf() 465 if (hdr->e_shoff > info->size) in parse_elf() 467 (unsigned long)hdr->e_shoff, filename, info->size); in parse_elf()
|