Searched defs:ehdr (Results 1 - 25 of 99) sorted by relevance

1234

/illumos-gate/usr/src/cmd/mdb/tools/common/
H A Dfindscn.c39 GElf_Ehdr ehdr; local
42 if (gelf_getehdr(elf, &ehdr) == NULL)
49 (name = elf_strptr(elf, ehdr.e_shstrndx,
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetphnum.c49 GElf_Ehdr ehdr; local
53 if (gelf_getehdr(elf, &ehdr) == NULL)
56 if (ehdr.e_phnum != PN_XNUM) {
57 *phnum = ehdr.e_phnum;
66 *phnum = ehdr.e_phnum;
H A Dgetshnum.c53 GElf_Ehdr ehdr; local
57 if (gelf_getehdr(elf, &ehdr) == 0)
59 if (ehdr.e_shnum > 0) {
60 *shnum = ehdr.e_shnum;
63 if ((ehdr.e_shnum == 0) && (ehdr.e_shoff == 0)) {
H A Dgetshstrndx.c47 GElf_Ehdr ehdr; local
51 if (gelf_getehdr(elf, &ehdr) == 0)
53 if (ehdr.e_shstrndx != SHN_XINDEX) {
54 *shstrndx = ehdr.e_shstrndx;
H A Dchecksum.c104 Elf_Ehdr * ehdr; local
110 if ((ehdr = getehdr(elf)) == 0)
132 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) {
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Dfcns.c86 GElf_Ehdr ehdr; local
108 if ((gelf_getehdr(elf_file, &ehdr) == 0) || (ehdr.e_phnum == 0)) {
136 conv_phdr_type(ehdr.e_ident[EI_OSABI],
137 ehdr.e_machine, p_phdr.p_type, DUMP_CONVFMT,
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c33 Elf_ehdr(Lm_list *lml, Ehdr *ehdr, Shdr *shdr0) argument
38 Byte *byte = &(ehdr->e_ident[0]);
41 uchar_t osabi = ehdr->e_ident[EI_OSABI];
42 Half mach = ehdr->e_machine;
52 conv_ehdr_class(ehdr->e_ident[EI_CLASS], 0, &inv_buf1),
53 conv_ehdr_data(ehdr->e_ident[EI_DATA], 0, &inv_buf2));
55 conv_ehdr_osabi(ehdr->e_ident[EI_OSABI], 0, &inv_buf1),
56 conv_ehdr_abivers(ehdr->e_ident[EI_OSABI],
57 ehdr->e_ident[EI_ABIVERSION], CONV_FMT_DECIMAL, &inv_buf2));
60 conv_ehdr_vers(ehdr
[all...]
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/i386/
H A Delf32_freebsd.c66 Elf_Ehdr *ehdr; local
72 ehdr = (Elf_Ehdr *)&(md->md_data);
77 entry = ehdr->e_entry & 0xffffff;
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Delf32_freebsd.c57 Elf_Ehdr *ehdr; local
63 ehdr = (Elf_Ehdr *)&(md->md_data);
68 entry = ehdr->e_entry & 0xffffff;
H A Delf64_freebsd.c75 Elf_Ehdr *ehdr; local
82 ehdr = (Elf_Ehdr *)&(md->md_data);
110 entry_lo = ehdr->e_entry & 0xffffffff;
111 entry_hi = (ehdr->e_entry >> 32) & 0xffffffff;
113 printf("Start @ %#llx ...\n", ehdr->e_entry);
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Dnlist.c64 GElf_Ehdr ehdr; /* ELF Ehdr */ local
78 if (gelf_getehdr(elfdes, &ehdr) == 0)
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c65 GElf_Ehdr ehdr; local
89 ((gelf_getehdr(elfp, &ehdr)) == NULL) ||
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/arm64/
H A Dexec.c78 Elf_Ehdr *ehdr; local
113 ehdr = (Elf_Ehdr *)&(md->md_data);
114 entry = efi_translate(ehdr->e_entry);
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/
H A Delf32_freebsd.c60 Elf_Ehdr *ehdr; local
68 ehdr = (Elf_Ehdr *)&(md->md_data);
73 entry = ehdr->e_entry & 0xffffff;
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Ddepend.c129 depend(Crle_desc *crle, const char *name, Half flags, GElf_Ehdr *ehdr) argument
139 if (ehdr->e_type == ET_EXEC) {
/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c90 GElf_Ehdr ehdr; local
114 if (gelf_getehdr(elf, &ehdr) == 0) {
118 if ((ehdr.e_phnum != 0) && !(fflag)) {
119 process_phdr(elf, ehdr.e_phnum);
195 if (ehdr.e_phnum != 0) {
196 process_phdr(elf, ehdr.e_phnum);
/illumos-gate/usr/src/lib/libsaveargs/tests/dump/
H A Ddump.c57 GElf_Ehdr ehdr; local
63 if ((gelf_getehdr(elf, &ehdr)) == NULL)
80 ehdr.e_shstrndx, (size_t)textshdr.sh_name)) == 0) {
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c83 Elf32_Ehdr *ehdr; /* ELF header of ld.so */ local
139 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC,
141 if (ehdr == (Elf32_Ehdr *)-1)
149 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 ||
150 ehdr->e_ident[EI_MAG1] != ELFMAG1 ||
151 ehdr->e_ident[EI_MAG2] != ELFMAG2 ||
152 ehdr->e_ident[EI_MAG3] != ELFMAG3)
154 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 ||
155 ehdr->e_ident[EI_DATA] != ELFDATA2LSB)
157 if (ehdr
[all...]
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c82 Elf32_Ehdr *ehdr; /* ELF header of ld.so */ local
138 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC,
140 if (ehdr == (Elf32_Ehdr *)-1)
148 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 ||
149 ehdr->e_ident[EI_MAG1] != ELFMAG1 ||
150 ehdr->e_ident[EI_MAG2] != ELFMAG2 ||
151 ehdr->e_ident[EI_MAG3] != ELFMAG3)
153 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 ||
154 ehdr->e_ident[EI_DATA] != ELFDATA2MSB)
156 if (ehdr
[all...]
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c220 Ehdr *ehdr; local
265 if ((ehdr = elf_newehdr(oelf)) == NULL) {
279 ehdr->e_ident[EI_DATA] = M_DATA;
280 ehdr->e_type = ET_REL;
281 ehdr->e_version = EV_CURRENT;
377 if ((ehdr = elf_getehdr(melf)) == NULL) {
431 ehdr->e_shstrndx = outshstrtab->os_ndx;
552 ehdr->e_ident[EI_CLASS] = tdesc.td_class;
553 ehdr->e_ident[EI_DATA] = tdesc.td_data;
554 ehdr
[all...]
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c90 GElf_Ehdr ehdr, tehdr; local
96 if (gelf_getehdr(elf, &ehdr) == NULL) {
266 tehdr = ehdr;
/illumos-gate/usr/src/cmd/sgs/librtld_db/i386/
H A Dplt32_resolution.c54 Ehdr ehdr; local
70 if (ps_pread(rap->rd_psp, rl->rl_base, (char *)&ehdr,
77 if (ehdr.e_type == ET_EXEC)
82 off = rl->rl_base + ehdr.e_phoff;
83 for (i = 0; i < ehdr.e_phnum; i++) {
100 off += ehdr.e_phentsize;
/illumos-gate/usr/src/tools/ctf/cvt/
H A Dutil.c67 GElf_Ehdr ehdr; local
70 if (gelf_getehdr(elf, &ehdr) == NULL)
71 elfterminate(file, "Couldn't read ehdr");
82 if ((name = elf_strptr(elf, ehdr.e_shstrndx,
99 GElf_Ehdr ehdr; local
101 if (gelf_getehdr(elf, &ehdr) == NULL) {
106 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32)
108 else if (ehdr.e_ident[EI_CLASS] == ELFCLASS64)
111 terminate("unknown ELF class %d\n", ehdr.e_ident[EI_CLASS]);
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dramdisk.c396 Elf64_Ehdr *ehdr; local
413 ehdr = (Elf64_Ehdr *)(uintptr_t)eadr;
414 if (ehdr->e_machine != EM_SPARCV9)
416 entry = ehdr->e_entry;
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/amd64/
H A Delf64_freebsd.c97 Elf_Ehdr *ehdr; local
133 ehdr = (Elf_Ehdr *)&(md->md_data);
170 printf("Start @ 0x%lx ...\n", ehdr->e_entry);
179 ehdr->e_entry);

Completed in 64 milliseconds

1234