Elf32_Ehdr
Elf32_Ehdr eh;
Elf32_Ehdr eh;
Elf32_Ehdr * ehdr,
Elf32_Ehdr * ehdr,
Elf32_Ehdr *ehdr;
Elf32_Ehdr *ptr;
if ((ptr = elf32_getehdr(c->obj->elf)) == (Elf32_Ehdr *) 0) {
c->obj->ehdr = (Elf32_Ehdr *) ptr;
Elf32_Ehdr * ehdr)
Elf32_Ehdr * ehdr)
Elf32_Ehdr *ehdr; /* 32 bit elf header for current file */
typedef Elf32_Ehdr _elfhdr;
#define Elf_Ehdr Elf32_Ehdr
gelf32_init(mdb_gelf_file_t *gf, mdb_io_t *io, const Elf32_Ehdr *ehdr)
mdb_gelf_check(mdb_io_t *io, Elf32_Ehdr *ehp, GElf_Half etype)
nbytes = IOP_READ(io, ehp, sizeof (Elf32_Ehdr));
if (nbytes != sizeof (Elf32_Ehdr) ||
Elf32_Ehdr h32;
extern int mdb_gelf_check(mdb_io_t *, Elf32_Ehdr *, GElf_Half);
Elf32_Ehdr ehdr;
Elf32_Ehdr chdr;
extern int fake_shdr_cache32(const char *, int, Elf *, Elf32_Ehdr *,
Elf32_Ehdr *os_ehdr; /* ELF header */
Elf32_Ehdr *ehdr = elf32_getehdr(nelf);
#define Elf_Ehdr Elf32_Ehdr
const Elf32_Ehdr _elf32_ehdr_init = { 0 };
extern const Elf32_Ehdr _elf32_ehdr_init;
Elf32_Ehdr * d = elf32_getehdr(elf);
Elf32_Ehdr * e = elf32_getehdr(elf);
Elf32_Ehdr *
return ((Elf32_Ehdr*) getehdr(elf, ELFCLASS32));
((Elf32_Ehdr *)elf->ed_ehdr)->e_shnum
#define Elf_Ehdr Elf32_Ehdr
&& len > sizeof (Elf32_Ehdr)
&& BOOTABLE_I386_ELF ((*((Elf32_Ehdr *) buffer))))
Elf32_Ehdr *elf;
Elf32_Ehdr *elf32_getehdr(Elf *);
Elf32_Ehdr *elf32_newehdr(Elf *);
ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC,
if (ehdr == (Elf32_Ehdr *)-1)
Elf32_Ehdr *ehdr; /* ELF header of ld.so */
ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC,
if (ehdr == (Elf32_Ehdr *)-1)
Elf32_Ehdr *ehdr; /* ELF header of ld.so */
ehdr_to_gelf(const Elf32_Ehdr *src, GElf_Ehdr *dst)
Elf32_Ehdr e32;
if (nbytes >= sizeof (Elf32_Ehdr) &&
Elf32_Ehdr e32 = hdr.e32;
Elf32_Ehdr *elf;
Elf32_Ehdr ehdr;
elf_file.ehdr.e_shoff = sizeof (Elf32_Ehdr);
elf_file.ehdr.e_ehsize = sizeof (Elf32_Ehdr);
Elf32_Ehdr *ehdr32;
if (sizeof(Elf32_Ehdr) != sizeof(dw_elf32_ehdr)) {
#define Elf_Ehdr Elf32_Ehdr
Elf32_Ehdr ehdr;
Elf32_Ehdr e32;
Elf32_Ehdr ehdr;
read_ehdr32(struct ps_prochandle *P, Elf32_Ehdr *ehdr, uint_t *phnum,
read_dynamic_phdr32(struct ps_prochandle *P, const Elf32_Ehdr *ehdr,
Elf32_Ehdr ehdr;
Elf32_Ehdr ehdr;
Elf32_Ehdr ehdr;
static int read_ehdr32(struct ps_prochandle *, Elf32_Ehdr *, uint_t *,
uintptr_t addr, Elf32_Ehdr *ehdr, uint_t phnum, Elf32_Phdr *phdr);
if ((ehdr = (Elf32_Ehdr *)kmem_alloc(sizeof (Elf32_Ehdr), 0)) == NULL) {
kmem_free(ehdr, sizeof (Elf32_Ehdr));
static func_t read_elf32(int, int, Elf32_Ehdr *);
read_elf32(int fd, int print, Elf32_Ehdr *elfhdrp)
Elf32_Ehdr Elfhdr;
Elf32_Ehdr *ehdr = NULL;
const Elf32_Ehdr *ee;
if (hdr->size >= sizeof(Elf32_Ehdr) && IS_ELF(*ee)) {
Elf32_Ehdr e; /* ELF header */
extract32(Elf32_Ehdr *eh)
Elf32_Ehdr *ehdr; /* file header */
sizeof (Elf32_Ehdr), ELF_T_EHDR)) == 0)
ehdr = (Elf32_Ehdr *)edata->d_buf;
(size_t)(ehdr->e_shnum * sizeof (Elf32_Ehdr)),
(sizeof (Elf32_Ehdr) + (section) * sizeof (Elf32_Shdr))
len = sizeof (Elf32_Ehdr);
Elf32_Ehdr ehdr;
ehdr.e_ehsize = sizeof (Elf32_Ehdr);
Ehdr32to64(Elf32_Ehdr *src, Ehdr *dst)
Elf32_Ehdr ehdr32;
Elf32_Ehdr ehdr32;
hsize = ((Elf32_Ehdr *)ehdrp)->e_phentsize;
hsize = ((Elf32_Ehdr *)ehdrp)->e_phentsize;
Elf32_Ehdr *e32hdr = (Elf32_Ehdr *)ehdrp;
extern int mapexec32_brand(vnode_t *, uarg_t *, Elf32_Ehdr *, Elf32_Addr *,
extern int elf32readhdr(vnode_t *, cred_t *, Elf32_Ehdr *, uint_t *, caddr_t *,
typedef Elf32_Ehdr Ehdr;
Elf32_Ehdr *ehdr = (Elf32_Ehdr *)img;