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

1234

/external/elfutils/src/libelf/
H A Dgelf_getehdr.c58 /* The following is an optimization: the ehdr element is at the same
60 if (offsetof (struct Elf, state.elf32.ehdr)
61 != offsetof (struct Elf, state.elf64.ehdr))
64 if (unlikely (elf->state.elf64.ehdr == NULL))
69 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; local
72 memcpy (dest->e_ident, ehdr->e_ident, EI_NIDENT);
74 dest->name = ehdr->name
92 result = memcpy (dest, elf->state.elf64.ehdr, sizeof (*dest));
H A Dgelf_update_ehdr.c58 Elf32_Ehdr *ehdr = elf->state.elf32.ehdr; local
60 if (ehdr == NULL)
78 memcpy (ehdr->e_ident, src->e_ident, EI_NIDENT);
80 ehdr->name = src->name
97 Elf64_Ehdr *ehdr = elf->state.elf64.ehdr; local
99 if (ehdr == NULL)
106 memcpy (ehdr, src, sizeof (Elf64_Ehdr));
/external/elfutils/src/backends/
H A Dppc64_init.c81 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local
82 if (ehdr != NULL && ehdr->e_type != ET_REL)
95 const char *name = elf_strptr (elf, ehdr->e_shstrndx,
H A Dppc64_resolve_sym.c49 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (ebl->elf, &ehdr_mem); local
50 if (ehdr != NULL)
58 ehdr->e_ident[EI_DATA]) != NULL)
H A Daarch64_symbol.c62 aarch64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, argument
68 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
78 sname = elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name);
H A Dppc64_symbol.c97 ppc64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, argument
102 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
H A Dppc_symbol.c124 ppc_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, argument
141 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
/external/elfutils/src/libasm/
H A Dasm_begin.c72 GElf_Ehdr *ehdr; local
92 ehdr = gelf_getehdr (result->out.elf, &ehdr_mem);
94 assert (ehdr != NULL);
97 ehdr->e_type = ET_REL;
99 ehdr->e_version = EV_CURRENT;
102 ehdr->e_machine = ebl_get_elfmachine (ebl);
103 ehdr->e_ident[EI_CLASS] = class;
104 ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl);
106 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG);
109 (void) gelf_update_ehdr (result->out.elf, ehdr);
[all...]
/external/elfutils/src/libdwelf/
H A Ddwelf_elf_gnu_debuglink.c88 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
89 if (ehdr == NULL)
92 Elf_Data *d = gelf_xlatetom (elf, &crcdata, &conv, ehdr->e_ident[EI_DATA]);
/external/elfutils/src/tests/
H A Dscnnames.c32 GElf_Ehdr ehdr; local
64 if (gelf_getehdr (elf, &ehdr) == NULL)
70 strndx = ehdr.e_shstrndx;
H A Dupdate1.c38 Elf32_Ehdr *ehdr; local
58 ehdr = elf32_newehdr (elf);
59 if (ehdr == NULL)
69 printf (" %02x", ehdr->e_ident[i]);
74 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
75 ehdr->e_phoff, ehdr
[all...]
H A Dupdate2.c38 Elf32_Ehdr *ehdr; local
59 ehdr = elf32_newehdr (elf);
60 if (ehdr == NULL)
70 printf (" %02x", ehdr->e_ident[i]);
75 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
76 ehdr->e_phoff, ehdr
[all...]
H A Dalldts.c90 Elf32_Ehdr *ehdr = elf32_newehdr (elf); local
91 if (ehdr == NULL)
97 ehdr->e_ident[0] = 42;
98 ehdr->e_ident[5] = 1;
99 ehdr->e_ident[6] = 2;
100 ehdr->e_type = ET_EXEC;
101 ehdr->e_machine = EM_386;
102 ehdr->e_version = 1;
103 ehdr->e_ehsize = 1;
104 ehdr
[all...]
H A Decp.c54 GElf_Ehdr *ehdr; local
55 gelf_update_ehdr (outelf, (ehdr = gelf_getehdr (inelf, &ehdr_mem)));
57 if (ehdr->e_phnum > 0)
61 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0)
65 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt)
H A Dnewfile.c26 print_ehdr (Elf32_Ehdr *ehdr) argument
31 printf (" %02x", ehdr->e_ident[n]);
37 ehdr->e_type,
38 ehdr->e_machine,
39 ehdr->e_version,
40 ehdr->e_entry,
41 ehdr->e_phoff,
42 ehdr->e_shoff,
43 ehdr->e_flags,
44 ehdr
85 Elf32_Ehdr *ehdr = elf32_getehdr (elf); local
[all...]
H A Dshowptable.c32 GElf_Ehdr ehdr; local
63 if (gelf_getehdr (elf, &ehdr) == NULL)
76 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt)
H A Dupdate3.c40 Elf32_Ehdr *ehdr; local
68 ehdr = elf32_newehdr (elf);
69 if (ehdr == NULL)
79 printf (" %02x", ehdr->e_ident[i]);
84 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
85 ehdr->e_phoff, ehdr
[all...]
H A Dasm-tst1.c71 GElf_Ehdr *ehdr; local
139 ehdr = gelf_getehdr (elf, &ehdr_mem);
140 if (ehdr == NULL)
147 if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
177 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
181 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
H A Dasm-tst2.c71 GElf_Ehdr *ehdr; local
155 ehdr = gelf_getehdr (elf, &ehdr_mem);
156 if (ehdr == NULL)
163 if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
193 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
197 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
H A Dasm-tst9.c91 GElf_Ehdr *ehdr; local
189 ehdr = gelf_getehdr (elf, &ehdr_mem);
190 if (ehdr == NULL)
197 if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
227 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
231 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
H A Dsaridx.c194 GElf_Ehdr ehdr; local
197 if (gelf_getehdr (subelf, &ehdr) == NULL)
202 ehdr.e_ident[EI_CLASS] == ELFCLASS32
205 ehdr.e_ident[EI_DATA] == ELFDATA2LSB
208 ehdr.e_type == ET_REL
210 : (ehdr.e_type == ET_EXEC
212 : (ehdr.e_type == ET_DYN
216 (ehdr.e_machine >= (sizeof (machines)
218 || machines[ehdr.e_machine] == NULL)
220 : machines[ehdr
[all...]
H A Dupdate4.c40 Elf32_Ehdr *ehdr; local
72 ehdr = elf32_newehdr (elf);
73 if (ehdr == NULL)
83 printf (" %02x", ehdr->e_ident[i]);
88 ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
89 ehdr->e_phoff, ehdr
[all...]
/external/elfutils/src/libebl/
H A Deblsectionstripp.c38 ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr, argument
56 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/src/libdw/
H A Ddwarf_begin_elf.c75 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) argument
105 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx,
265 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr) argument
270 result = check_section (result, ehdr, scn, false);
277 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) argument
309 result = check_section (result, ehdr, scn, true);
324 GElf_Ehdr *ehdr; local
329 ehdr = gelf_getehdr (elf, &ehdr_mem);
330 if (ehdr == NULL)
355 if ((BYTE_ORDER == LITTLE_ENDIAN && ehdr
[all...]

Completed in 5490 milliseconds

1234