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

123

/external/elfutils/libelf/
H A Dgelf_getehdr.c79 /* The following is an optimization: the ehdr element is at the same
81 if (offsetof (struct Elf, state.elf32.ehdr)
82 != offsetof (struct Elf, state.elf64.ehdr))
85 if (unlikely (elf->state.elf64.ehdr == NULL))
90 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; local
93 memcpy (dest->e_ident, ehdr->e_ident, EI_NIDENT);
95 dest->name = ehdr->name
113 result = memcpy (dest, elf->state.elf64.ehdr, sizeof (*dest));
H A Dgelf_update_ehdr.c79 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; local
81 if (ehdr == NULL)
99 memcpy (ehdr->e_ident, src->e_ident, EI_NIDENT);
101 ehdr->name = src->name
118 Elf64_Ehdr *ehdr = elf->state.elf64.ehdr; local
120 if (ehdr == NULL)
127 memcpy (ehdr, src, sizeof (Elf64_Ehdr));
H A Delf_getdata.c239 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...]
/external/elfutils/libasm/
H A Dasm_begin.c69 GElf_Ehdr *ehdr; local
89 ehdr = gelf_getehdr (result->out.elf, &ehdr_mem);
91 assert (ehdr != NULL);
94 ehdr->e_type = ET_REL;
96 ehdr->e_version = EV_CURRENT;
99 ehdr->e_machine = ebl_get_elfmachine (ebl);
100 ehdr->e_ident[EI_CLASS] = class;
101 ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl);
103 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG);
106 (void) gelf_update_ehdr (result->out.elf, ehdr);
[all...]
/external/elfutils/tests/
H A Dscnnames.c40 GElf_Ehdr ehdr; local
72 if (gelf_getehdr (elf, &ehdr) == NULL)
78 strndx = ehdr.e_shstrndx;
H A Dupdate1.c45 Elf32_Ehdr *ehdr; local
65 ehdr = elf32_newehdr (elf);
66 if (ehdr == NULL)
76 printf (" %02x", ehdr->e_ident[i]);
81 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
82 ehdr->e_phoff, ehdr
[all...]
H A Dupdate2.c45 Elf32_Ehdr *ehdr; local
66 ehdr = elf32_newehdr (elf);
67 if (ehdr == NULL)
77 printf (" %02x", ehdr->e_ident[i]);
82 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
83 ehdr->e_phoff, ehdr
[all...]
H A Decp.c62 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)
H A Dnewfile.c34 print_ehdr (Elf32_Ehdr *ehdr) argument
39 printf (" %02x", ehdr->e_ident[n]);
45 ehdr->e_type,
46 ehdr->e_machine,
47 ehdr->e_version,
48 ehdr->e_entry,
49 ehdr->e_phoff,
50 ehdr->e_shoff,
51 ehdr->e_flags,
52 ehdr
93 Elf32_Ehdr *ehdr = elf32_getehdr (elf); local
[all...]
H A Dshowptable.c40 GElf_Ehdr ehdr; local
71 if (gelf_getehdr (elf, &ehdr) == NULL)
84 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt)
H A Dupdate3.c47 Elf32_Ehdr *ehdr; local
75 ehdr = elf32_newehdr (elf);
76 if (ehdr == NULL)
86 printf (" %02x", ehdr->e_ident[i]);
91 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
92 ehdr->e_phoff, ehdr
[all...]
H A Dasm-tst1.c79 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),
H A Dasm-tst2.c79 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),
H A Dasm-tst9.c99 GElf_Ehdr *ehdr; local
197 ehdr = gelf_getehdr (elf, &ehdr_mem);
198 if (ehdr == NULL)
205 if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
235 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
239 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
H A Dsaridx.c202 GElf_Ehdr ehdr; local
205 if (gelf_getehdr (subelf, &ehdr) == NULL)
210 ehdr.e_ident[EI_CLASS] == ELFCLASS32
213 ehdr.e_ident[EI_DATA] == ELFDATA2LSB
216 ehdr.e_type == ET_REL
218 : (ehdr.e_type == ET_EXEC
220 : (ehdr.e_type == ET_DYN
224 (ehdr.e_machine >= (sizeof (machines)
226 || machines[ehdr.e_machine] == NULL)
228 : machines[ehdr
[all...]
H A Dupdate4.c48 Elf32_Ehdr *ehdr; local
80 ehdr = elf32_newehdr (elf);
81 if (ehdr == NULL)
91 printf (" %02x", ehdr->e_ident[i]);
96 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
97 ehdr->e_phoff, ehdr
[all...]
H A Dasm-tst3.c71 GElf_Ehdr *ehdr; local
170 ehdr = gelf_getehdr (elf, &ehdr_mem);
171 if (ehdr == NULL)
201 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
205 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
/external/elfutils/backends/
H A Dppc64_symbol.c91 ppc64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, argument
96 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
106 GElf_Ehdr *ehdr __attribute__ ((unused)))
H A Dppc_symbol.c81 find_dyn_got (Elf *elf, GElf_Ehdr *ehdr, GElf_Addr *addr) argument
83 for (int i = 0; i < ehdr->e_phnum; ++i)
117 ppc_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, argument
127 if (find_dyn_got (elf, ehdr, &gotaddr))
134 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
154 ppc_bss_plt_p (Elf *elf, GElf_Ehdr *ehdr) argument
157 return ! find_dyn_got (elf, ehdr, &addr);
/external/elfutils/libebl/
H A Deblsectionstripp.c59 ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr, argument
77 const char *s_l = elf_strptr (ebl->elf, ehdr->e_shstrndx,
/external/tcpdump/
H A Dprint-ipfc.c84 struct ether_header ehdr; local
94 extract_ipfc_addrs(ipfcp, (char *)ESRC(&ehdr), (char *)EDST(&ehdr));
97 ipfc_hdr_print(ipfcp, length, ESRC(&ehdr), EDST(&ehdr));
105 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr),
113 ESRC(&ehdr), EDST(&ehdr));
/external/elfutils/libdw/
H A Ddwarf_begin_elf.c88 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) argument
118 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx,
176 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr) argument
181 result = check_section (result, ehdr, scn, false);
188 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) argument
216 result = check_section (result, ehdr, scn, true);
231 GElf_Ehdr *ehdr; local
236 ehdr = gelf_getehdr (elf, &ehdr_mem);
237 if (ehdr == NULL)
260 if ((BYTE_ORDER == LITTLE_ENDIAN && ehdr
[all...]
/external/elfutils/libdwfl/
H A Dargp-std.c228 GElf_Ehdr ehdr; local
230 gelf_getehdr (core, &ehdr));
H A Ddwfl_module_build_id.c108 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
109 if (unlikely (ehdr == NULL))
/external/elfutils/src/
H A Darlib.c226 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)

Completed in 224 milliseconds

123