elfhdr
elf = (struct elfhdr *) buf;
struct elfhdr *elf;
struct elfhdr *__h = (hdr); \
struct elfhdr *__h = (hdr); \
struct elfhdr *ehdr, struct kexec_elf_info *elf_info,
struct elfhdr ehdr;
struct elfhdr *__h = (hdr); \
struct elfhdr *__h = (hdr); \
struct elfhdr ehdr;
struct elfhdr *elf;
elf = (struct elfhdr *)bufp;
bufp += sizeof(struct elfhdr);
elfcorehdr_size = sizeof(struct elfhdr) + (elf_phdr_cnt * sizeof(struct elf_phdr));
bufp += sizeof(struct elfhdr);
struct elfhdr *elf;
elf = (struct elfhdr *) bufp;
bufp += sizeof(struct elfhdr);
elf->e_phoff = sizeof(struct elfhdr);
elf->e_ehsize = sizeof(struct elfhdr);
Elf32_Ehdr elfhdr;
.elfhdr = {
return sizeof(struct elfhdr) + (phdr_cnt * sizeof(Elf64_Phdr));
struct elfhdr ehdr;
struct elfhdr ehdr;
static int riscv_kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
struct elfhdr *ehdr, struct kexec_elf_info *elf_info,
static void fill_elf_header(struct elfhdr *elf, int segs,
elf->e_phoff = sizeof(struct elfhdr);
elf->e_ehsize = sizeof(struct elfhdr);
create_elf_tables(struct linux_binprm *bprm, const struct elfhdr *exec,
static int fill_note_info(struct elfhdr *elf, int phdrs,
static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum,
struct elfhdr elf;
static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex,
static inline int arch_elf_pt_proc(struct elfhdr *ehdr,
static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp,
struct elfhdr *interp_ehdr,
static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf;
struct elfhdr *interp_elf_ex = NULL;
static int is_elf(struct elfhdr *hdr, struct file *file)
static inline void fill_elf_fdpic_header(struct elfhdr *elf, int segs)
static int is_constdisp(struct elfhdr *hdr)
elf->e_phoff = sizeof(struct elfhdr);
elf->e_ehsize = sizeof(struct elfhdr);
static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum,
struct elfhdr *elf = NULL;
exec_params.hdr = *(struct elfhdr *) bprm->buf;
interp_params.hdr = *((struct elfhdr *) bprm->buf);
kcore_data_offset = PAGE_ALIGN(sizeof(struct elfhdr) + kcore_phdrs_len +
phdrs_offset = sizeof(struct elfhdr);
if (buflen && *fpos < sizeof(struct elfhdr)) {
struct elfhdr ehdr = {
.e_phoff = sizeof(struct elfhdr),
.e_ehsize = sizeof(struct elfhdr),
tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos);
struct elfhdr hdr; /* ref copy of ELF header */
const struct elfhdr *ehdr;
int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
static int elf_read_ehdr(const char *buf, size_t len, struct elfhdr *ehdr)
struct elfhdr *buf_ehdr;
buf_ehdr = (struct elfhdr *) buf;
const struct elfhdr *ehdr = elf_info->ehdr;
static inline bool elf_is_elf_file(const struct elfhdr *ehdr)
const struct elfhdr *ehdr = elf_info->ehdr;
static uint64_t elf64_to_cpu(const struct elfhdr *ehdr, uint64_t value)
struct elfhdr *ehdr,
int kexec_build_elf_info(const char *buf, size_t len, struct elfhdr *ehdr,
struct elfhdr ehdr;
int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr,
static uint32_t elf32_to_cpu(const struct elfhdr *ehdr, uint32_t value)
static uint16_t elf16_to_cpu(const struct elfhdr *ehdr, uint16_t value)
static bool elf_is_ehdr_sane(const struct elfhdr *ehdr, size_t buf_len)