elf_phdr
if (read(fd, buf, sizeof(*elf_phdr)) != sizeof(*elf_phdr)) {
elf_phdr = (struct elf_phdr *) buf;
offset = elf_phdr->p_offset;
mem_size = elf_phdr->p_memsz;
fil_size = elf_phdr->p_filesz;
if (elf_phdr->p_vaddr < e_entry) {
unsigned long delta = e_entry - elf_phdr->p_vaddr;
elf_phdr->p_vaddr += delta;
prog_name, (long) elf_phdr->p_vaddr,
elf_phdr->p_vaddr + fil_size, offset);
struct elf_phdr *elf_phdr; /* program header */
struct elf_phdr phdr;
const struct elf_phdr *phdr;
struct elf_phdr *phdr = (struct elf_phdr *)
phdr = (struct elf_phdr *)bufp;
bufp += sizeof(struct elf_phdr);
phdr = (struct elf_phdr *)bufp;
bufp += sizeof(struct elf_phdr);
phdr = (struct elf_phdr *)bufp;
bufp += sizeof(struct elf_phdr);
phdr = (struct elf_phdr *)bufp;
bufp += sizeof(struct elf_phdr);
phdr = (struct elf_phdr *)bufp;
bufp += sizeof(struct elf_phdr);
phdr = (struct elf_phdr *) bufp;
elfcorehdr_size = sizeof(struct elfhdr) + (elf_phdr_cnt * sizeof(struct elf_phdr));
struct elf_phdr *phdr;
phdr = (struct elf_phdr *)bufp;
elf->e_phentsize = sizeof(struct elf_phdr);
static void __init populate_elf_pt_load(struct elf_phdr *phdr, u64 start,
struct elf_phdr *phdr;
const struct elf_phdr *phdr;
const struct elf_phdr *phdr;
elf->e_phentsize = sizeof(struct elf_phdr);
static void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset)
struct elf_phdr *phdr4note = NULL;
offset += segs * sizeof(struct elf_phdr); /* Program headers */
struct elf_phdr phdr;
NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr));
const struct elf_phdr *eppnt, int prot, int type,
const struct elf_phdr *eppnt, int prot, int type,
static unsigned long total_mapping_size(const struct elf_phdr *phdr, int nr)
static unsigned long maximum_alignment(struct elf_phdr *cmds, int nr)
static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex,
struct elf_phdr *elf_phdata = NULL;
if (elf_ex->e_phentsize != sizeof(struct elf_phdr))
size = sizeof(struct elf_phdr) * elf_ex->e_phnum;
struct elf_phdr *phdr,
unsigned long no_base, struct elf_phdr *interp_elf_phdata,
struct elf_phdr *eppnt;
static int parse_elf_properties(struct file *f, const struct elf_phdr *phdr,
struct elf_phdr *elf_ppnt, *elf_phdata, *interp_elf_phdata = NULL;
struct elf_phdr *elf_property_phdata = NULL;
struct elf_phdr *phdr;
elf->e_phentsize = sizeof(struct elf_phdr);
static inline void fill_elf_note_phdr(struct elf_phdr *phdr, int sz, loff_t offset)
struct elf_phdr *phdr;
if (params->hdr.e_phentsize != sizeof(struct elf_phdr))
if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr))
struct elf_phdr *phdr4note = NULL;
size = params->hdr.e_phnum * sizeof(struct elf_phdr);
offset += segs * sizeof(struct elf_phdr); /* Program headers */
struct elf_phdr phdr;
struct elf_phdr *phdr;
NEW_AUX_ENT(AT_PHENT, sizeof(struct elf_phdr));
struct elf_phdr *phdr;
stop += params->hdr.e_phnum * sizeof (struct elf_phdr);
struct elf_phdr *phdr;
kcore_phdrs_len = kcore_nphdr * sizeof(struct elf_phdr);
.e_phentsize = sizeof(struct elf_phdr),
struct elf_phdr *phdrs, *phdr;
struct elf_phdr mount[] = {
struct elf_phdr unordered[] = {
struct elf_phdr empty[] = {
struct elf_phdr *phdrs; /* ref copy of PT_PHDR table */
const struct elf_phdr *proghdrs;
static bool elf_is_phdr_sane(const struct elf_phdr *phdr, size_t buf_len)
struct elf_phdr *phdr = (struct elf_phdr *) &elf_info->proghdrs[idx];
struct elf_phdr *buf_phdr;
buf_phdr = (struct elf_phdr *) pbuf;
phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum;
const struct elf_phdr *phdr;
if (ehdr->e_phnum > 0 && ehdr->e_phentsize != sizeof(struct elf_phdr)) {
phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum;