/kernel/linux/linux-5.10/kernel/ |
H A 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()
|
/kernel/linux/linux-6.6/kernel/ |
H A 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()
|
H A D | kexec_file.c | 819 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 D | vdso2c.h | 68 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 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()
|
H A 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()
|
/kernel/linux/linux-6.6/scripts/ |
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A D | elf.h | 62 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 D | genvdso.h | 15 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 D | elf.h | 62 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 D | genvdso.h | 15 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 D | vdso2c.h | 66 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 D | vdso2c.h | 66 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 D | vdso2c.h | 103 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 D | relocs.c | 362 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 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() 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 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()
|
/kernel/linux/linux-6.6/arch/mips/boot/tools/ |
H A 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()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | elf.h | 215 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 D | elf.h | 216 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 D | elf.h | 178 Elf32_Off e_shoff; member 194 Elf64_Off e_shoff; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | elf.h | 178 Elf32_Off e_shoff; member 194 Elf64_Off e_shoff; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | elf.h | 164 Elf32_Off e_shoff; member 180 Elf64_Off e_shoff; member
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A D | remoteproc_elf_helpers.h | 61 ELF_GEN_FIELD_GET_SET(hdr, e_shoff, u64)
|