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

12

/linux-master/arch/powerpc/boot/
H A Delf.h62 Elf32_Off e_shoff; member in struct:elf32_hdr
79 Elf64_Off e_shoff; /* Section header table file offset */ member in struct:elf64_hdr
/linux-master/kernel/
H A Dkexec_elf.c97 if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) {
107 if (ehdr->e_shoff + shdr_size < ehdr->e_shoff) {
110 } else if (ehdr->e_shoff + shdr_size > buf_len) {
164 ehdr->e_shoff = elf64_to_cpu(ehdr, buf_ehdr->e_shoff);
170 ehdr->e_shoff = elf32_to_cpu(ehdr, buf_ehdr->e_shoff);
H A Dkexec_file.c838 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
907 memcpy(sechdrs, (void *)pi->ehdr + pi->ehdr->e_shoff, sechdrs_size);
968 sechdrs = (void *)pi->ehdr + pi->ehdr->e_shoff;
1085 sechdrs = (void *)ehdr + ehdr->e_shoff;
/linux-master/arch/s390/tools/
H A Drelocs.c137 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff);
165 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
166 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno));
191 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
192 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno));
/linux-master/arch/sparc/vdso/
H A Dvdso2c.h66 ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) +
75 strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) +
H A Dvma.c75 shdrs = (void *)e->hdr + e->hdr->e_shoff;
143 shdrs = (void *)e->hdr + e->hdr->e_shoff;
/linux-master/arch/mips/vdso/
H A Dgenvdso.h15 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff);
69 shdrs = vdso + FUNC(swap_uint)(ehdr->e_shoff);
/linux-master/arch/x86/entry/vdso/
H A Dvdso2c.h103 secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) +
107 ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) +
122 strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) +
/linux-master/scripts/
H A Dinsert-sys-cert.c73 x = (void *)hdr + hdr->e_shoff;
141 x = (void *)hdr + hdr->e_shoff;
165 x = (void *)hdr + hdr->e_shoff;
189 x = (void *)hdr + hdr->e_shoff;
341 if (hdr->e_shoff > vmlinux_size) {
H A Drecordmcount.h272 uint_t const old_shoff = _w(ehdr->e_shoff);
342 ehdr->e_shoff = _w(new_e_shoff);
378 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff)
455 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff)
609 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff)
/linux-master/arch/arm64/kernel/pi/
H A Drelacheck.c73 shdr = (void *)ehdr + swab_elfxword(ehdr->e_shoff);
/linux-master/drivers/remoteproc/
H A Dremoteproc_elf_helpers.h61 ELF_GEN_FIELD_GET_SET(hdr, e_shoff, u64)
/linux-master/arch/mips/boot/tools/
H A Drelocs.c229 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff);
269 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
270 die("Seek to %d failed: %s\n", ehdr.e_shoff, strerror(errno));
/linux-master/arch/riscv/kernel/
H A Dalternative.c180 shdr = (void *)hdr + hdr->e_shoff;
/linux-master/include/uapi/linux/
H A Delf.h216 Elf32_Off e_shoff; member in struct:elf32_hdr
233 Elf64_Off e_shoff; /* Section header table file offset */ member in struct:elf64_hdr
/linux-master/arch/x86/tools/
H A Drelocs.c390 ehdr.e_shoff = elf_off_to_cpu(ehdr.e_shoff);
419 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
420 die("Seek to %" FMT " failed: %s\n", ehdr.e_shoff, strerror(errno));
446 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) {
448 ehdr.e_shoff, strerror(errno));
/linux-master/arch/mips/boot/
H A Delf2ecoff.c176 e->e_shoff = swab32(e->e_shoff);
335 sh = (Elf32_Shdr *) saveRead(infile, ex.e_shoff,
/linux-master/tools/testing/selftests/proc/
H A Dproc-pid-vm.c87 uint64_t e_shoff; member in struct:elf64_hdr
177 h.e_shoff = 0;
/linux-master/arch/mips/tools/
H A Dloongson3-llsc-check.c286 sh = vmlinux + le64toh(eh->e_shoff) + (i * le16toh(eh->e_shentsize));
/linux-master/arch/arm64/kernel/
H A Dalternative.c209 shdr = (void *)hdr + hdr->e_shoff;
/linux-master/arch/arm/kernel/
H A Dvdso.c108 sechdrs = (void *)ehdr + ehdr->e_shoff;
/linux-master/fs/
H A Dbinfmt_elf_fdpic.c1251 elf->e_shoff = 0;
1425 elf_addr_t e_shoff, int segs)
1427 elf->e_shoff = e_shoff;
1480 elf_addr_t e_shoff; local
1558 e_shoff = offset;
1564 fill_extnum_info(elf, shdr4extnum, e_shoff, segs);
1424 fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, elf_addr_t e_shoff, int segs) argument
H A Dbinfmt_elf.c1939 elf_addr_t e_shoff, int segs)
1941 elf->e_shoff = e_shoff;
1971 elf_addr_t e_shoff; local
2018 e_shoff = offset;
2024 fill_extnum_info(&elf, shdr4extnum, e_shoff, segs);
1938 fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum, elf_addr_t e_shoff, int segs) argument
/linux-master/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c292 elf.sh_table = section_by_off(elf64toh(elf.ehdr->e_shoff));
/linux-master/tools/testing/selftests/sgx/
H A Dload.c147 sections = encl->bin + ehdr->e_shoff;

Completed in 244 milliseconds

12