| /onnv/onnv-gate/usr/src/cmd/mdb/tools/common/ |
| findscn.c | 39 GElf_Ehdr ehdr; local 42 if (gelf_getehdr(elf, &ehdr) == NULL) 49 (name = elf_strptr(elf, ehdr.e_shstrndx,
|
| /onnv/onnv-gate/usr/src/cmd/sgs/libelf/common/ |
| getphnum.c | 49 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;
|
| getshnum.c | 53 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)) {
|
| getshstrndx.c | 47 GElf_Ehdr ehdr; local 51 if (gelf_getehdr(elf, &ehdr) == 0) 53 if (ehdr.e_shstrndx != SHN_XINDEX) { 54 *shstrndx = ehdr.e_shstrndx;
|
| checksum.c | 79 Elf32_Ehdr * ehdr; local 85 if ((ehdr = elf32_getehdr(elf)) == 0) 107 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) { 132 Elf64_Ehdr * ehdr; local 138 if ((ehdr = elf64_getehdr(elf)) == 0) 141 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) {
|
| /onnv/onnv-gate/usr/src/cmd/sgs/dump/common/ |
| fcns.c | 81 GElf_Ehdr ehdr; local 103 if ((gelf_getehdr(elf_file, &ehdr) == 0) || (ehdr.e_phnum == 0)) { 131 conv_phdr_type(ehdr.e_ident[EI_OSABI], 132 ehdr.e_machine, p_phdr.p_type, DUMP_CONVFMT,
|
| /onnv/onnv-gate/usr/src/cmd/boot/symdef/ |
| symdef.c | 65 GElf_Ehdr ehdr; local 89 ((gelf_getehdr(elfp, &ehdr)) == NULL) ||
|
| /onnv/onnv-gate/usr/src/cmd/sgs/libelf/misc/ |
| nlist.c | 64 GElf_Ehdr ehdr; /* ELF Ehdr */ local 78 if (gelf_getehdr(elfdes, &ehdr) == 0)
|
| /onnv/onnv-gate/usr/src/cmd/sgs/librtld_db/i386/ |
| plt32_resolution.c | 54 Ehdr ehdr; local 70 if (ps_pread(rap->rd_psp, rl->rl_base, (char *)&ehdr, 71 sizeof (Ehdr)) != PS_OK) { 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;
|
| /onnv/onnv-gate/usr/src/tools/ctf/cvt/ |
| util.c | 67 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]);
|
| /onnv/onnv-gate/usr/src/cmd/sgs/size/common/ |
| process.c | 90 GElf_Ehdr ehdr; local 113 if (gelf_getehdr(elf, &ehdr) == 0) { 117 if ((ehdr.e_phnum != 0) && !(fflag)) { 118 process_phdr(elf, ehdr.e_phnum); 127 ndx = ehdr.e_shstrndx; 131 if (ehdr.e_shnum == 0) { 134 numsect = ehdr.e_shnum; 189 if (ehdr.e_phnum != 0) { 190 process_phdr(elf, ehdr.e_phnum);
|
| /onnv/onnv-gate/usr/src/lib/libproc/common/ |
| Pidle.c | 113 GElf_Ehdr ehdr; local 199 if (gelf_getehdr(elf, &ehdr) == NULL) { 245 switch (ehdr.e_ident[EI_CLASS]) {
|
| /onnv/onnv-gate/usr/src/cmd/sgs/elfwrap/common/ |
| elfwrap.c | 220 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 [all...] |
| /onnv/onnv-gate/usr/src/cmd/sgs/link_audit/common/ |
| who.c | 55 Elf_Ehdr * ehdr; local 67 ehdr = (Elf_Ehdr *)lpc; 70 for (i = 0, phdr = (Elf_Phdr *)(ehdr->e_phoff + lpc); 71 i < ehdr->e_phnum; i++, phdr++) { 82 if (ehdr->e_type == ET_EXEC)
|
| /onnv/onnv-gate/usr/src/cmd/sgs/prof/common/ |
| rdelf.c | 41 GElf_Ehdr ehdr; local 58 if (gelf_getehdr(elf, &ehdr) == NULL) { 67 if (ehdr.e_type == ET_DYN) 359 GElf_Ehdr ehdr; local 365 if (gelf_getehdr(elf, &ehdr) == NULL) { 371 for (ndx = 0; ndx < ehdr.e_phnum; ndx++) {
|
| /onnv/onnv-gate/usr/src/lib/libc/amd64/crt/ |
| _rtld.c | 85 Elf32_Ehdr *ehdr; /* ELF header of ld.so */ local 142 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC, 144 if (ehdr == (Elf32_Ehdr *)-1) 152 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 || 153 ehdr->e_ident[EI_MAG1] != ELFMAG1 || 154 ehdr->e_ident[EI_MAG2] != ELFMAG2 || 155 ehdr->e_ident[EI_MAG3] != ELFMAG3) 157 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 || 158 ehdr->e_ident[EI_DATA] != ELFDATA2LSB) 160 if (ehdr->e_type != ET_DYN [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/i386/crt/ |
| _rtld.c | 85 Elf32_Ehdr *ehdr; /* ELF header of ld.so */ local 142 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC, 144 if (ehdr == (Elf32_Ehdr *)-1) 152 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 || 153 ehdr->e_ident[EI_MAG1] != ELFMAG1 || 154 ehdr->e_ident[EI_MAG2] != ELFMAG2 || 155 ehdr->e_ident[EI_MAG3] != ELFMAG3) 157 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 || 158 ehdr->e_ident[EI_DATA] != ELFDATA2LSB) 160 if (ehdr->e_type != ET_DYN [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/sparc/crt/ |
| _rtld.c | 84 Elf32_Ehdr *ehdr; /* ELF header of ld.so */ local 140 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC, 142 if (ehdr == (Elf32_Ehdr *)-1) 150 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 || 151 ehdr->e_ident[EI_MAG1] != ELFMAG1 || 152 ehdr->e_ident[EI_MAG2] != ELFMAG2 || 153 ehdr->e_ident[EI_MAG3] != ELFMAG3) 155 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 || 156 ehdr->e_ident[EI_DATA] != ELFDATA2MSB) 158 if (ehdr->e_type != ET_DYN [all...] |
| /onnv/onnv-gate/usr/src/lib/libtnfctl/ |
| traverse.c | 54 GElf_Ehdr *ehdr, ehdr_obj; local 76 if ((ehdr = gelf_getehdr(elf, &ehdr_obj)) == NULL) { 82 if ((ehdr->e_type != ET_EXEC) && (ehdr->e_type != ET_DYN)) { 90 if (ehdr->e_type == ET_EXEC) 93 strs = elf_strptr(elf, ehdr->e_shstrndx, NULL); 97 tnf_long, num_sections_found, ehdr->e_shnum); 99 for (idx = 1; idx < ehdr->e_shnum; idx++) {
|
| /onnv/onnv-gate/usr/src/cmd/sgs/librtld_db/rdb_demo/common/ |
| maps.c | 205 GElf_Ehdr ehdr; local 262 if (gelf_getehdr(mp->mi_elf, &ehdr) == NULL) { 267 mp->mi_ehdr = ehdr; 268 if (ehdr.e_type == ET_EXEC) 277 for (cnt = 0; cnt < (int)(ehdr.e_phnum); cnt++) { 337 ehdr.e_shstrndx, shdr.sh_name)) == 0) {
|
| /onnv/onnv-gate/usr/src/psm/stand/boot/sparc/common/ |
| ramdisk.c | 398 Elf64_Ehdr *ehdr; local 415 ehdr = (Elf64_Ehdr *)(uintptr_t)eadr; 416 if (ehdr->e_machine != EM_SPARCV9) 418 entry = ehdr->e_entry;
|
| /onnv/onnv-gate/usr/src/cmd/sgs/rtld/common/ |
| object.c | 46 static Ehdr dehdr = { { ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3, 209 Ehdr *ehdr; local 273 ehdr = ofl->ofl_nehdr; 276 if ((mpp = hmpp = calloc(ehdr->e_phnum, 279 for (mnum = 0, phnum = 0; phnum < ehdr->e_phnum; phnum++) { 284 (uintptr_t)ehdr);
|
| /onnv/onnv-gate/usr/src/cmd/sgs/libelf/demo/ |
| dcom.c | 92 GElf_Ehdr ehdr; local 108 if (gelf_getehdr(elf, &ehdr) == 0) { 280 tehdr = ehdr;
|
| dispsyms.c | 77 GElf_Ehdr ehdr; local 81 if (gelf_getehdr(elf, &ehdr) == 0) {
|
| /onnv/onnv-gate/usr/src/cmd/abi/appcert/static_prof/ |
| static_prof.h | 103 Elf64_Ehdr *ehdr; /* 64 bit elf header for current file */ member in struct:obj_com 107 Elf32_Ehdr *ehdr; /* 32 bit elf header for current file */ member in struct:obj_com
|