HomeSort by relevance Sort by last modified time
    Searched refs:ehdr (Results 1 - 25 of 102) sorted by null

1 2 3 4 5

  /onnv/onnv-gate/usr/src/cmd/sgs/libelf/common/
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)) {
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;
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/liblddbg/common/
elf.c 33 Elf_ehdr(Lm_list *lml, Ehdr *ehdr, Shdr *shdr0)
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))
    [all...]
  /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/lib/libproc/common/
Psymtab_machelf.h 37 uintptr_t addr, Elf32_Ehdr *ehdr, uint_t phnum, Elf32_Phdr *phdr);
40 uintptr_t addr, Elf64_Ehdr *ehdr, uint_t phnum, Elf64_Phdr *phdr);
Pgcore.c 1033 Elf32_Ehdr ehdr; local
1035 bzero(&ehdr, sizeof (ehdr));
1036 ehdr.e_ident[EI_MAG0] = ELFMAG0;
1037 ehdr.e_ident[EI_MAG1] = ELFMAG1;
1038 ehdr.e_ident[EI_MAG2] = ELFMAG2;
1039 ehdr.e_ident[EI_MAG3] = ELFMAG3;
1040 ehdr.e_type = ET_CORE;
1042 ehdr.e_ident[EI_CLASS] = ELFCLASS32;
1044 ehdr.e_machine = EM_SPARC
1091 Elf64_Ehdr ehdr; local
    [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/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/cmd/sgs/elfedit/modules/common/
ehdr.c 53 EHDR_CMD_T_DUMP = 0, /* ehdr:dump */
56 EHDR_CMD_T_E_IDENT = 1, /* ehdr:e_ident */
57 EHDR_CMD_T_E_TYPE = 2, /* ehdr:e_type */
58 EHDR_CMD_T_E_MACHINE = 3, /* ehdr:e_machine */
59 EHDR_CMD_T_E_VERSION = 4, /* ehdr:e_version */
60 EHDR_CMD_T_E_ENTRY = 5, /* ehdr:e_entry */
61 EHDR_CMD_T_E_PHOFF = 6, /* ehdr:e_phoff */
62 EHDR_CMD_T_E_SHOFF = 7, /* ehdr:e_shoff */
63 EHDR_CMD_T_E_FLAGS = 8, /* ehdr:e_flags */
64 EHDR_CMD_T_E_EHSIZE = 9, /* ehdr:e_ehsize *
243 Ehdr *ehdr; local
672 Ehdr *ehdr; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/mdb/common/modules/krtld/
krtld.c 143 dump_ehdr(const Ehdr *ehdr)
148 ehdr->e_ident[EI_MAG0], ehdr->e_ident[EI_MAG1],
149 ehdr->e_ident[EI_MAG2], ehdr->e_ident[EI_MAG3]);
152 ehdr->e_ident[EI_CLASS], ehdr->e_ident[EI_DATA]);
155 ehdr->e_machine, ehdr->e_version)
    [all...]
  /onnv/onnv-gate/usr/src/lib/brand/lx/librtld_db/common/
lx_librtld_db.c 181 Elf32_Ehdr ehdr; local
189 /* Read in a copy of the ehdr */
190 if (_rd_get_ehdr32(rap, addr, &ehdr, NULL) != RD_OK) {
211 if (ehdr.e_type != ET_DYN) {
240 (dynp[i].d_un.d_ptr < ehdr.e_shoff)) {
299 Elf32_Ehdr ehdr; local
327 if (ps_pread(php, addr, &ehdr, sizeof (ehdr)) != PS_OK) {
328 ps_plog("lx_ldb_init: couldn't read ehdr at 0x%p",
333 ps_plog("lx_ldb_init: read ehdr at: 0x%p", addr)
413 Elf32_Ehdr ehdr; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/sgs/ld/common/
ld.c 69 * header is fixed by the ELF ABI. Hence, the ehdr part of this union is
82 } ehdr; member in union:__anon13
172 Elf64_Ehdr *ehdr; local
174 if ((ehdr = elf64_getehdr(_elf)) ==
177 *class_ret = ehdr->e_ident[EI_CLASS];
178 *mach_ret = ehdr->e_machine;
180 Elf32_Ehdr *ehdr; local
182 if ((ehdr = elf32_getehdr(_elf)) ==
185 *class_ret = ehdr->e_ident[EI_CLASS];
186 *mach_ret = ehdr->e_machine
    [all...]
  /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/rtld.4.x/
rtld.4.x.c 223 Elf32_Ehdr *ehdr; /* ELF header of ld.so */ local
382 ehdr = (Elf32_Ehdr *)mmap(0, sb.st_size, PROT_READ | PROT_EXEC,
384 if (ehdr == (Elf32_Ehdr *)-1)
392 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 ||
393 ehdr->e_ident[EI_MAG1] != ELFMAG1 ||
394 ehdr->e_ident[EI_MAG2] != ELFMAG2 ||
395 ehdr->e_ident[EI_MAG3] != ELFMAG3)
397 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 ||
398 ehdr->e_ident[EI_DATA] != ELFDATA2MSB)
400 if (ehdr->e_type != ET_DYN
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/fs/objfs/
objfs_data.c 600 Elf64_Ehdr ehdr; local
602 Elf32_Ehdr ehdr;
605 bzero(&ehdr, sizeof (ehdr));
607 bcopy(ELFMAG, ehdr.e_ident, SELFMAG);
609 ehdr.e_ident[EI_DATA] = ELFDATA2MSB;
611 ehdr.e_ident[EI_DATA] = ELFDATA2LSB;
613 ehdr.e_ident[EI_VERSION] = EV_CURRENT;
616 ehdr.e_ident[EI_CLASS] = ELFCLASS64;
617 ehdr.e_type = ELFCLASS64
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/exec/elf/
elf.c 71 static int getelfhead(vnode_t *, cred_t *, Ehdr *, int *, int *, int *);
72 static int getelfphdr(vnode_t *, cred_t *, const Ehdr *, int, caddr_t *,
74 static int getelfshdr(vnode_t *, cred_t *, const Ehdr *, int, int, caddr_t *,
76 static size_t elfsize(Ehdr *, int, caddr_t, uintptr_t *);
77 static int mapelfexec(vnode_t *, Ehdr *, int, caddr_t,
166 mapexec_brand(vnode_t *vp, uarg_t *args, Ehdr *ehdr, Addr *uphdr_vaddr,
192 if ((error = getelfhead(vp, CRED(), ehdr, &nshdrs, &shstrndx,
194 (error = getelfphdr(vp, CRED(), ehdr, nphdrs, &phdrbase,
200 if ((len = elfsize(ehdr, nphdrs, phdrbase, &lddata)) == 0)
277 Ehdr ehdr; member in struct:bigwad
1424 Ehdr ehdr; local
1693 Ehdr ehdr; member in union:__anon2
1699 Ehdr *ehdr; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/sgs/ldd/common/
ldd.c 385 is_runnable(GElf_Ehdr *ehdr)
387 if ((ehdr->e_ident[EI_CLASS] == ELFCLASS32) &&
388 (ehdr->e_ident[EI_DATA] == M_DATA))
392 if ((ehdr->e_machine == EM_SPARCV9) &&
393 (ehdr->e_ident[EI_DATA] == M_DATA) &&
397 if ((ehdr->e_machine == EM_AMD64) &&
398 (ehdr->e_ident[EI_DATA] == ELFDATA2LSB) &&
410 GElf_Ehdr ehdr; local
417 if (gelf_getehdr(elf, &ehdr) == NULL) {
426 if ((class = is_runnable(&ehdr)) == ELFCLASSNONE)
    [all...]
  /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/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/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/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
  /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++) {

Completed in 10119 milliseconds

1 2 3 4 5