Symbol: elfhdr
arch/alpha/boot/tools/objstrip.c
149
elf = (struct elfhdr *) buf;
arch/alpha/boot/tools/objstrip.c
61
struct elfhdr *elf;
arch/loongarch/include/asm/elf.h
243
struct elfhdr *__h = (hdr); \
arch/loongarch/include/asm/elf.h
259
struct elfhdr *__h = (hdr); \
arch/loongarch/kernel/kexec_elf.c
21
struct elfhdr *ehdr, struct kexec_elf_info *elf_info,
arch/loongarch/kernel/kexec_elf.c
61
struct elfhdr ehdr;
arch/mips/include/asm/elf.h
285
struct elfhdr *__h = (hdr); \
arch/mips/include/asm/elf.h
313
struct elfhdr *__h = (hdr); \
arch/parisc/kernel/kexec_file.c
23
struct elfhdr ehdr;
arch/powerpc/kernel/fadump.c
1006
struct elfhdr *elf;
arch/powerpc/kernel/fadump.c
1013
elf = (struct elfhdr *)bufp;
arch/powerpc/kernel/fadump.c
1014
bufp += sizeof(struct elfhdr);
arch/powerpc/kernel/fadump.c
1657
elfcorehdr_size = sizeof(struct elfhdr) + (elf_phdr_cnt * sizeof(struct elf_phdr));
arch/powerpc/kernel/fadump.c
762
bufp += sizeof(struct elfhdr);
arch/powerpc/kernel/fadump.c
926
struct elfhdr *elf;
arch/powerpc/kernel/fadump.c
928
elf = (struct elfhdr *) bufp;
arch/powerpc/kernel/fadump.c
929
bufp += sizeof(struct elfhdr);
arch/powerpc/kernel/fadump.c
940
elf->e_phoff = sizeof(struct elfhdr);
arch/powerpc/kernel/fadump.c
950
elf->e_ehsize = sizeof(struct elfhdr);
arch/powerpc/kernel/prom_init.c
1139
Elf32_Ehdr elfhdr;
arch/powerpc/kernel/prom_init.c
1172
.elfhdr = {
arch/powerpc/kexec/crash.c
419
return sizeof(struct elfhdr) + (phdr_cnt * sizeof(Elf64_Phdr));
arch/powerpc/kexec/elf_64.c
38
struct elfhdr ehdr;
arch/riscv/kernel/kexec_elf.c
117
struct elfhdr ehdr;
arch/riscv/kernel/kexec_elf.c
24
static int riscv_kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
arch/riscv/kernel/kexec_elf.c
64
struct elfhdr *ehdr, struct kexec_elf_info *elf_info,
fs/binfmt_elf.c
1438
static void fill_elf_header(struct elfhdr *elf, int segs,
fs/binfmt_elf.c
1452
elf->e_phoff = sizeof(struct elfhdr);
fs/binfmt_elf.c
1454
elf->e_ehsize = sizeof(struct elfhdr);
fs/binfmt_elf.c
165
create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec,
fs/binfmt_elf.c
1816
static int fill_note_info(struct elfhdr *elf, int phdrs,
fs/binfmt_elf.c
1971
static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum,
fs/binfmt_elf.c
1998
struct elfhdr elf;
fs/binfmt_elf.c
521
static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex,
fs/binfmt_elf.c
592
static inline int arch_elf_pt_proc(struct elfhdr *ehdr,
fs/binfmt_elf.c
616
static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp,
fs/binfmt_elf.c
617
struct elfhdr *interp_ehdr,
fs/binfmt_elf.c
646
static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
fs/binfmt_elf.c
850
struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf;
fs/binfmt_elf.c
851
struct elfhdr *interp_elf_ex = NULL;
fs/binfmt_elf_fdpic.c
104
static int is_elf(struct elfhdr *hdr, struct file *file)
fs/binfmt_elf_fdpic.c
1246
static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs)
fs/binfmt_elf_fdpic.c
125
static int is_constdisp(struct elfhdr *hdr)
fs/binfmt_elf_fdpic.c
1259
elf->e_phoff = sizeof(struct elfhdr);
fs/binfmt_elf_fdpic.c
1262
elf->e_ehsize = sizeof(struct elfhdr);
fs/binfmt_elf_fdpic.c
1434
static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum,
fs/binfmt_elf_fdpic.c
1480
struct elfhdr *elf = NULL;
fs/binfmt_elf_fdpic.c
205
exec_params.hdr = *(struct elfhdr *) bprm->buf;
fs/binfmt_elf_fdpic.c
285
interp_params.hdr = *((struct elfhdr *) bprm->buf);
fs/proc/kcore.c
131
kcore_data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + kcore_phdrs_len +
fs/proc/kcore.c
345
phdrs_offset = sizeof(struct elfhdr);
fs/proc/kcore.c
349
if (buflen && *fpos < sizeof(struct elfhdr)) {
fs/proc/kcore.c
350
struct elfhdr ehdr = {
fs/proc/kcore.c
364
.e_phoff = sizeof(struct elfhdr),
fs/proc/kcore.c
366
.e_ehsize = sizeof(struct elfhdr),
fs/proc/kcore.c
371
tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos);
include/linux/elf-fdpic.h
29
struct elfhdr hdr; /* ref copy of ELF header */
include/linux/kexec.h
324
const struct elfhdr *ehdr;
include/linux/kexec.h
328
int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
include/linux/kexec.h
331
int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
kernel/kexec_elf.c
119
static int elf_read_ehdr(const char *buf, size_t len, struct elfhdr *ehdr)
kernel/kexec_elf.c
121
struct elfhdr *buf_ehdr;
kernel/kexec_elf.c
144
buf_ehdr = (struct elfhdr *) buf;
kernel/kexec_elf.c
208
const struct elfhdr *ehdr = elf_info->ehdr;
kernel/kexec_elf.c
24
static inline bool elf_is_elf_file(const struct elfhdr *ehdr)
kernel/kexec_elf.c
255
const struct elfhdr *ehdr = elf_info->ehdr;
kernel/kexec_elf.c
29
static uint64_t elf64_to_cpu(const struct elfhdr *ehdr, uint64_t value)
kernel/kexec_elf.c
297
struct elfhdr *ehdr,
kernel/kexec_elf.c
327
int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
kernel/kexec_elf.c
367
struct elfhdr ehdr;
kernel/kexec_elf.c
388
int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
kernel/kexec_elf.c
39
static uint32_t elf32_to_cpu(const struct elfhdr *ehdr, uint32_t value)
kernel/kexec_elf.c
49
static uint16_t elf16_to_cpu(const struct elfhdr *ehdr, uint16_t value)
kernel/kexec_elf.c
63
static bool elf_is_ehdr_sane(const struct elfhdr *ehdr, size_t buf_len)