/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/openbmc/poky/scripts/ |
H A D | relocate_sdk.py | 53 global e_type, e_machine, e_version, e_entry, e_phoff, e_shoff, e_flags,\ 68 e_type, e_machine, e_version, e_entry, e_phoff, e_shoff, e_flags,\ 121 f.seek(e_shoff + e_shstrndx * e_shentsize) 135 f.seek(e_shoff + i * e_shentsize)
|
/openbmc/linux/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
|
/openbmc/u-boot/cmd/ |
H A D | elf.c | 87 shdr = (Elf64_Shdr *)(addr + (ulong)ehdr->e_shoff + in load_elf64_image_shdr() 95 shdr = (Elf64_Shdr *)(addr + (ulong)ehdr->e_shoff + in load_elf64_image_shdr() 192 shdr = (Elf32_Shdr *)(addr + ehdr->e_shoff + in load_elf_image_shdr() 200 shdr = (Elf32_Shdr *)(addr + ehdr->e_shoff + in load_elf_image_shdr()
|
/openbmc/linux/arch/x86/entry/vdso/ |
H A 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()
|
/openbmc/linux/arch/mips/vdso/ |
H A 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()
|
/openbmc/linux/arch/sparc/vdso/ |
H A 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()
|
H A 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()
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/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
|
/openbmc/u-boot/tools/ |
H A D | img2srec.c | 258 getPtr = ExtractLong((uint32_t *)&elfHeader.e_shoff, getPtr); in ConvertELF() 279 fseek(file, elfHeader.e_shoff, SEEK_SET); in ConvertELF()
|
H A D | mips-relocs.c | 286 shdr32 = elf + ehdr_field(e_shoff); in main() 287 shdr64 = elf + ehdr_field(e_shoff); in main()
|
H A D | zynqmpbif.c | 556 shdr = (void *)(elf + le64_to_cpu(ehdr->e_shoff)); in elf2flat64() 579 shdr = (void *)(elf + le64_to_cpu(ehdr->e_shoff)); in elf2flat64() 604 shdr = (void *)(elf + le32_to_cpu(ehdr->e_shoff)); in elf2flat32() 627 shdr = (void *)(elf + le32_to_cpu(ehdr->e_shoff)); in elf2flat32()
|
/openbmc/linux/fs/ |
H A D | binfmt_elf_fdpic.c | 1247 elf->e_shoff = 0; in fill_elf_fdpic_header() 1421 elf_addr_t e_shoff, int segs) in fill_extnum_info() argument 1423 elf->e_shoff = e_shoff; in fill_extnum_info() 1476 elf_addr_t e_shoff; in elf_fdpic_core_dump() local 1554 e_shoff = offset; in elf_fdpic_core_dump() 1560 fill_extnum_info(elf, shdr4extnum, e_shoff, segs); in elf_fdpic_core_dump()
|
/openbmc/qemu/linux-user/ |
H A D | gen-vdso-elfn.c.inc | 17 bswaps(&ehdr->e_shoff); /* Section header table file offset */ 97 ElfN(Shdr) *shdr = (void *)ehdr + ehdr->e_shoff; 130 shdr = buf + ehdr->e_shoff;
|
/openbmc/u-boot/include/ |
H A D | elf.h | 98 Elf32_Off e_shoff; /* section header table offset */ member 116 Elf64_Off e_shoff; /* section header table offset */ member
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc-pid-vm.c | 87 uint64_t e_shoff; member 177 h.e_shoff = 0; in make_exe()
|
/openbmc/u-boot/drivers/net/pfe_eth/ |
H A D | pfe_firmware.c | 37 be32_to_cpu(elf_hdr->e_shoff)); in pfe_load_elf()
|
/openbmc/qemu/bsd-user/ |
H A D | elfload.c | 55 bswaptls(&ehdr->e_shoff); /* Section header table file offset */ in bswap_ehdr() 404 lseek(fd, hdr->e_shoff, SEEK_SET); in load_symbols() 412 lseek(fd, hdr->e_shoff + sizeof(sechdr) * sechdr.sh_link, in load_symbols()
|
/openbmc/linux/arch/mips/boot/ |
H A 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()
|
/openbmc/linux/drivers/remoteproc/ |
H A D | remoteproc_elf_helpers.h | 61 ELF_GEN_FIELD_GET_SET(hdr, e_shoff, u64) in ELF_GEN_FIELD_GET_SET()
|