Searched defs:ehdr (Results 1 - 25 of 95) 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);
80 entry = ehdr->e_entry & 0xffffff;
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Delf32_freebsd.c56 Elf_Ehdr *ehdr; local
62 ehdr = (Elf_Ehdr *)&(md->md_data);
67 entry = ehdr->e_entry & 0xffffff;
H A Delf64_freebsd.c74 Elf_Ehdr *ehdr; local
81 ehdr = (Elf_Ehdr *)&(md->md_data);
109 entry_lo = ehdr->e_entry & 0xffffffff;
110 entry_hi = (ehdr->e_entry >> 32) & 0xffffffff;
112 printf("Start @ %#llx ...\n", ehdr->e_entry);
/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.c77 Elf_Ehdr *ehdr; local
112 ehdr = (Elf_Ehdr *)&(md->md_data);
113 entry = efi_translate(ehdr->e_entry);
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Dnlist.c61 GElf_Ehdr ehdr; /* ELF Ehdr */ local
75 if (gelf_getehdr(elfdes, &ehdr) == 0)
/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/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/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/libproc/common/
H A DPidle.c159 GElf_Ehdr ehdr; local
245 if (gelf_getehdr(elf, &ehdr) == NULL) {
291 switch (ehdr.e_ident[EI_CLASS]) {
/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);
182 ehdr->e_entry);
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dramdisk.c395 Elf64_Ehdr *ehdr; local
412 ehdr = (Elf64_Ehdr *)(uintptr_t)eadr;
413 if (ehdr->e_machine != EM_SPARCV9)
415 entry = ehdr->e_entry;
/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/lib/fm/topo/libtopo/common/
H A Dmod.c116 GElf_Ehdr ehdr; local
133 if ((gelf_getehdr(elf, &ehdr)) == NULL) {
147 ehdr.e_shstrndx, (size_t)shdr.sh_name);

Completed in 264 milliseconds

1234