HomeSort by relevance Sort by last modified time
    Searched refs:ehdr (Results 26 - 50 of 128) sorted by null

12 3 4 5 6

  /external/elfutils/tests/
ecp.c 62 GElf_Ehdr *ehdr; local
63 gelf_update_ehdr (outelf, (ehdr = gelf_getehdr (inelf, &ehdr_mem)));
65 if (ehdr->e_phnum > 0)
69 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0)
73 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt)
scnnames.c 40 GElf_Ehdr ehdr; local
72 if (gelf_getehdr (elf, &ehdr) == NULL)
78 strndx = ehdr.e_shstrndx;
asm-tst1.c 79 GElf_Ehdr *ehdr; local
147 ehdr = gelf_getehdr (elf, &ehdr_mem);
148 if (ehdr == NULL)
155 if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
185 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
189 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
asm-tst2.c 79 GElf_Ehdr *ehdr; local
163 ehdr = gelf_getehdr (elf, &ehdr_mem);
164 if (ehdr == NULL)
171 if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
201 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
205 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
showptable.c 40 GElf_Ehdr ehdr; local
71 if (gelf_getehdr (elf, &ehdr) == NULL)
84 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt)
sectiondump.c 88 GElf_Ehdr *ehdr; local
95 ehdr = gelf_getehdr (elf, &ehdr_mem);
97 if (ehdr == NULL || shdr == NULL)
111 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
  /external/elfutils/libebl/
eblsectionstripp.c 59 ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr,
77 const char *s_l = elf_strptr (ebl->elf, ehdr->e_shstrndx,
  /external/elfutils/backends/
ppc64_symbol.c 91 ppc64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr,
96 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
106 GElf_Ehdr *ehdr __attribute__ ((unused)))
  /external/elfutils/libelf/
elf_begin.c 104 } ehdr; local
118 ehdr.p = e_ident;
124 ehdr.p = &ehdr_mem;
163 result = ehdr.e32->e_shnum;
165 if (unlikely (result == 0) && ehdr.e32->e_shoff != 0)
167 if (ehdr.e32->e_shoff + sizeof (Elf32_Shdr) > maxsize)
176 result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff
186 + ehdr.e32->e_shoff
191 offset + ehdr.e32->e_shoff
204 if (ehdr.e32->e_shoff > maxsiz
304 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) ((char *) map_address + offset); local
392 Elf64_Ehdr *ehdr = (Elf64_Ehdr *) ((char *) map_address + offset); local
532 Elf64_Ehdr ehdr; member in union:__anon6841
    [all...]
elf32_newphdr.c 93 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL))
112 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0;
114 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize =
124 else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count
141 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = count;
143 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize =
157 assert (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize
elf32_updatefile.c 129 ElfW2(LIBELFBITS,Ehdr) *ehdr;
133 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
140 assert (sizeof (ElfW2(LIBELFBITS,Ehdr))
155 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr,
156 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1);
159 memcpy (elf->map_address + elf->start_offset, ehdr,
160 sizeof (ElfW2(LIBELFBITS,Ehdr)));
177 if (ehdr->e_phoff > ehdr->e_ehsize
    [all...]
elf32_getphdr.c 94 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
97 size_t phnum = ehdr->e_phnum;
110 + elf->start_offset + ehdr->e_phoff);
111 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA
137 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA)
184 elf->start_offset + ehdr->e_phoff);
196 if (ehdr->e_ident[EI_DATA] != MY_ELFDATA)
elf32_getshdr.c 76 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
106 + elf->start_offset + ehdr->e_shoff);
108 assert (ehdr->e_ident[EI_DATA] != MY_ELFDATA
114 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA)
126 + elf->start_offset + ehdr->e_shoff);
131 + elf->start_offset + ehdr->e_shoff),
170 elf->start_offset + ehdr->e_shoff);
180 if (ehdr->e_ident[EI_DATA] != MY_ELFDATA
    [all...]
elf_getdata.c 239 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem); local
240 entsize = SH_ENTSIZE_HASH (ehdr);
316 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem); local
318 = (SH_ENTSIZE_HASH (ehdr) == 4 ? ELF_T_WORD : ELF_T_XWORD);
325 || (offsetof (struct Elf, state.elf32.ehdr)
326 == offsetof (struct Elf, state.elf64.ehdr)))
328 elf->state.elf32.ehdr->e_ident[EI_VERSION];
331 elf->state.elf64.ehdr->e_ident[EI_VERSION];
463 || (offsetof (struct Elf, state.elf32.ehdr)
464 == offsetof (struct Elf, state.elf64.ehdr))
    [all...]
gelf_getphdr.c 103 if (ndx >= elf->state.elf32.ehdr->e_phnum)
141 if (ndx >= elf->state.elf64.ehdr->e_phnum)
gelf_update_phdr.c 104 if (unlikely (ndx >= elf->state.elf32.ehdr->e_phnum))
137 if (unlikely (ndx >= elf->state.elf64.ehdr->e_phnum))
  /external/elfutils/src/
elflint.c 104 static void check_note_section (Ebl *ebl, GElf_Ehdr *ehdr,
353 check_elf_header (Ebl *ebl, GElf_Ehdr *ehdr, size_t size)
359 if (ehdr->e_ident[EI_MAG0] != ELFMAG0)
361 if (ehdr->e_ident[EI_MAG1] != ELFMAG1)
363 if (ehdr->e_ident[EI_MAG2] != ELFMAG2)
365 if (ehdr->e_ident[EI_MAG3] != ELFMAG3)
368 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32
369 && ehdr->e_ident[EI_CLASS] != ELFCLASS64)
371 EI_CLASS, ehdr->e_ident[EI_CLASS]);
373 if (ehdr->e_ident[EI_DATA] != ELFDATA2LS
4211 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
    [all...]
arlib.c 226 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
227 if (ehdr == NULL)
232 if (ehdr->e_type == ET_REL)
234 else if (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN)
276 if (ehdr->e_type != ET_REL)
  /external/tcpdump/
print-fddi.c 245 struct ether_header ehdr; local
256 extract_fddi_addrs(fddip, (char *)ESRC(&ehdr), (char *)EDST(&ehdr));
259 fddi_hdr_print(fddip, length, ESRC(&ehdr), EDST(&ehdr));
269 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr),
277 ESRC(&ehdr), EDST(&ehdr));
290 fddi_hdr_print(fddip, length + FDDI_HDRLEN, ESRC(&ehdr),
    [all...]
  /external/elfutils/libdwfl/
dwfl_segment_report_module.c 179 } ehdr; local
193 .d_buf = &ehdr,
194 .d_size = sizeof ehdr,
204 phoff = ehdr.e32.e_phoff;
205 phnum = ehdr.e32.e_phnum;
206 phentsize = ehdr.e32.e_phentsize;
209 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize;
217 phoff = ehdr.e64.e_phoff
    [all...]
dwfl_report_elf.c 67 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local
68 if (ehdr == NULL)
76 switch (ehdr->e_type)
191 for (uint_fast16_t i = 0; i < ehdr->e_phnum; ++i)
206 for (uint_fast16_t i = ehdr->e_phnum; i-- > 0;)
249 m->e_type = ehdr->e_type;
  /external/valgrind/main/VEX/switchback/
linker.c 396 Elf_Ehdr* ehdr = (Elf_Ehdr*)ehdrC;
397 Elf_Shdr* shdr = (Elf_Shdr*)(ehdrC + ehdr->e_shoff);
398 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
402 for (i = 0; i < ehdr->e_shnum; i++) {
405 && i != ehdr->e_shstrndx
872 Elf_Ehdr* ehdr = (Elf_Ehdr*) ehdrC;
873 Elf_Shdr* shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff);
874 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
888 for (shnum = 0; shnum < ehdr->e_shnum; shnum++) {
934 Elf_Ehdr* ehdr = (Elf_Ehdr*)ehdrC
    [all...]
  /external/valgrind/main/VEX/unused/
linker.c 330 Elf_Ehdr* ehdr = (Elf_Ehdr*)ehdrC; local
331 Elf_Shdr* shdr = (Elf_Shdr*)(ehdrC + ehdr->e_shoff);
332 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
336 for (i = 0; i < ehdr->e_shnum; i++) {
339 && i != ehdr->e_shstrndx
714 Elf_Ehdr* ehdr = (Elf_Ehdr*) ehdrC; local
715 Elf_Shdr* shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff);
716 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
730 for (shnum = 0; shnum < ehdr->e_shnum; shnum++) {
776 Elf_Ehdr* ehdr = (Elf_Ehdr*)ehdrC local
957 Elf_Ehdr* ehdr = (Elf_Ehdr*)ehdrC; local
    [all...]
  /external/elfutils/libasm/
disasm_cb.c 118 GElf_Ehdr *ehdr = gelf_getehdr (ctx->elf, &ehdr_mem); local
119 if (ehdr == NULL)
122 switch (ehdr->e_type)
  /external/valgrind/main/coregrind/m_coredump/
coredump-elf.c 88 static void fill_ehdr(ESZ(Ehdr) *ehdr, Int num_phdrs)
90 VG_(memset)(ehdr, 0, sizeof(*ehdr));
92 VG_(memcpy)(ehdr->e_ident, ELFMAG, SELFMAG);
93 ehdr->e_ident[EI_CLASS] = VG_ELF_CLASS;
94 ehdr->e_ident[EI_DATA] = VG_ELF_DATA2XXX;
95 ehdr->e_ident[EI_VERSION] = EV_CURRENT;
97 ehdr->e_type = ET_CORE;
98 ehdr->e_machine = VG_ELF_MACHINE
    [all...]

Completed in 335 milliseconds

12 3 4 5 6