Home
last modified time | relevance | path

Searched refs:e_shoff (Results 1 - 25 of 72) sorted by relevance

123

/kernel/linux/linux-5.10/kernel/
H A 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()
/kernel/linux/linux-6.6/kernel/
H A 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()
H A Dkexec_file.c819 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_purgatory_setup_kbuf()
888 memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, sechdrs_size); in kexec_purgatory_setup_sechdrs()
949 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff; in kexec_apply_relocations()
1066 sechdrs = (void *)ehdr + ehdr->e_shoff; in kexec_purgatory_find_symbol()
/kernel/linux/linux-5.10/arch/x86/entry/vdso/
H A Dvdso2c.h68 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in go()
72 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) + in go()
85 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in go()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Delf.h62 Elf32_Off e_shoff; member
79 Elf64_Off e_shoff; /* Section header table file offset */ member
/kernel/linux/linux-5.10/arch/mips/vdso/
H A Dgenvdso.h15 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in patch_vdso()
69 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in get_symbols()
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A Delf.h62 Elf32_Off e_shoff; member
79 Elf64_Off e_shoff; /* Section header table file offset */ member
/kernel/linux/linux-6.6/arch/mips/vdso/
H A Dgenvdso.h15 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in patch_vdso()
69 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff); in get_symbols()
/kernel/linux/linux-5.10/arch/sparc/vdso/
H A Dvdso2c.h66 ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) + in go()
75 strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) + in go()
/kernel/linux/linux-6.6/arch/sparc/vdso/
H A Dvdso2c.h66 ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) + in go()
75 strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) + in go()
/kernel/linux/linux-6.6/arch/x86/entry/vdso/
H A Dvdso2c.h103 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in go()
107 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) + in go()
122 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) + in go()
/kernel/linux/linux-5.10/arch/x86/tools/
H A 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()
/kernel/linux/linux-6.6/arch/x86/tools/
H A Drelocs.c390 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()
446 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) { in read_shdrs()
448 ehdr.e_shoff, strerror(errno)); in read_shdrs()
/kernel/linux/linux-5.10/arch/mips/boot/tools/
H A 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()
/kernel/linux/linux-6.6/arch/mips/boot/tools/
H A 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()
/kernel/linux/linux-5.10/include/uapi/linux/
H A Delf.h215 Elf32_Off e_shoff; member
232 Elf64_Off e_shoff; /* Section header table file offset */ member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Delf.h216 Elf32_Off e_shoff; member
233 Elf64_Off e_shoff; /* Section header table file offset */ member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Delf.h178 Elf32_Off e_shoff; member
194 Elf64_Off e_shoff; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Delf.h178 Elf32_Off e_shoff; member
194 Elf64_Off e_shoff; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Delf.h164 Elf32_Off e_shoff; member
180 Elf64_Off e_shoff; member
/kernel/linux/linux-5.10/drivers/remoteproc/
H A Dremoteproc_elf_helpers.h61 ELF_GEN_FIELD_GET_SET(hdr, e_shoff, u64)

Completed in 22 milliseconds

123