Elf32_Ehdr
int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr,
int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
Elf32_Ehdr *hdr; /* ptr to ELF */
static void * __init find_section(Elf32_Ehdr *ehdr, const char *name,
const Elf32_Ehdr *inhdr;
Elf32_Ehdr *outhdr;
int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
static void convert_elf_hdr(Elf32_Ehdr * e)
Elf32_Ehdr ex;
#define Elf_Ehdr Elf32_Ehdr
Elf32_Ehdr ehdr32;
const Elf32_Ehdr *ehdr;
Elf32_Ehdr ehdr;
Elf32_Ehdr *elf32 = hdr;
int module_frob_arch_sections(Elf32_Ehdr *hdr,
static unsigned long get_plt_size(const Elf32_Ehdr *hdr,
Elf32_Ehdr elfhdr;
extern bool compat_elf_check_arch(Elf32_Ehdr *hdr);
bool compat_elf_check_arch(Elf32_Ehdr *hdr)
Elf32_Ehdr *hdr;
Elf32_Ehdr ehdr;
static int __init copy_notes_elf32(const Elf32_Ehdr *ehdr_ptr, char *notes_buf)
Elf32_Ehdr *ehdr_ptr;
ehdr_ptr = (Elf32_Ehdr *)elfptr;
note_off = sizeof(Elf32_Ehdr) +
tmp = elfptr + sizeof(Elf32_Ehdr);
memmove(tmp, tmp+i, ((*elfsz)-sizeof(Elf32_Ehdr)-sizeof(Elf32_Phdr)));
Elf32_Ehdr *ehdr_ptr;
ehdr_ptr = (Elf32_Ehdr *)elfptr;
phdr_ptr = (Elf32_Phdr*)(elfptr + sizeof(Elf32_Ehdr)); /* PT_NOTE hdr */
Elf32_Ehdr ehdr;
rc = elfcorehdr_read((char *)&ehdr, sizeof(Elf32_Ehdr), &addr);
ehdr.e_ehsize != sizeof(Elf32_Ehdr) ||
elfcorebuf_sz_orig = sizeof(Elf32_Ehdr) + ehdr.e_phnum * sizeof(Elf32_Phdr);
Elf32_Ehdr *ehdr = (Elf32_Ehdr *)elfptr;
Elf32_Phdr *phdr = (Elf32_Phdr *)(elfptr + sizeof(Elf32_Ehdr));
static int __init update_note_header_size_elf32(const Elf32_Ehdr *ehdr_ptr)
static int __init get_note_number_and_size_elf32(const Elf32_Ehdr *ehdr_ptr,
#define Elf_Ehdr Elf32_Ehdr
const Elf32_Ehdr *ehdr;
ehdr = freader_fetch(r, 0, sizeof(Elf32_Ehdr));
const Elf32_Ehdr *ehdr;
ehdr = freader_fetch(&r, 0, offsetofend(Elf32_Ehdr, e_type));
if (elf_parser.r2(&ehdr->e32.e_ehsize) != sizeof(Elf32_Ehdr) ||
Elf32_Ehdr e32;
#define Elf_Ehdr Elf32_Ehdr
#define Elf_Ehdr Elf32_Ehdr
Elf32_Ehdr *ehdr;
if (w2(ehdr->e_ehsize) != sizeof(Elf32_Ehdr)
# define Elf_Ehdr Elf32_Ehdr
if (elf_parser.r2(&ehdr->e32.e_ehsize) != sizeof(Elf32_Ehdr) ||
Elf32_Ehdr *elf_hdr;
if (!buf || (len < sizeof(Elf32_Ehdr)))
elf_hdr = (Elf32_Ehdr *)buf;
if (elf_hdr->e_ehsize != sizeof(Elf32_Ehdr))
_Static_assert(offsetof(Elf32_Ehdr, e_ident) == 0, "Unexpected offset");
_Static_assert(offsetof(Elf32_Ehdr, e_machine) == 18, "Unexpected offset");
? offsetof(Elf32_Ehdr, e_flags)
#define Elf_Ehdr Elf32_Ehdr
ehdr->e_phoff = sizeof(Elf32_Ehdr);
ehdr->e_ehsize = sizeof(Elf32_Ehdr);
Elf32_Ehdr ehdr32;