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

1 2 3

  /external/elfutils/libelf/
gelf_update_ehdr.c 79 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));
gelf_getehdr.c 79 /* 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));
  /external/elfutils/tests/
update1.c 45 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->e_shoff, ehdr->e_flags, ehdr->e_ehsize
    [all...]
update2.c 45 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->e_shoff, ehdr->e_flags, ehdr->e_ehsize
    [all...]
scnnames.c 40 GElf_Ehdr ehdr; local
72 if (gelf_getehdr (elf, &ehdr) == NULL)
78 strndx = ehdr.e_shstrndx;
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)
newfile.c 34 print_ehdr (Elf32_Ehdr *ehdr)
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->e_ehsize
93 Elf32_Ehdr *ehdr = elf32_getehdr (elf); local
    [all...]
saridx.c 202 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.e_machine])
    [all...]
showptable.c 40 GElf_Ehdr ehdr; local
71 if (gelf_getehdr (elf, &ehdr) == NULL)
84 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt)
update3.c 47 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->e_shoff, ehdr->e_flags, ehdr->e_ehsize
    [all...]
update4.c 48 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->e_shoff, ehdr->e_flags, ehdr->e_ehsize
    [all...]
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),
asm-tst9.c 99 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),
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),
  /bionic/libc/arch-x86/bionic/
dl_iterate_phdr_static.c 58 Elf32_Ehdr *ehdr = (Elf32_Ehdr *) &__executable_start; local
59 Elf32_Phdr *phdr = (Elf32_Phdr *)((unsigned long)ehdr + ehdr->e_phoff);
63 if (ehdr->e_ident[EI_MAG0] != ELFMAG0) return -1;
64 if (ehdr->e_ident[EI_MAG1] != ELFMAG1) return -1;
65 if (ehdr->e_ident[EI_MAG2] != ELFMAG2) return -1;
66 if (ehdr->e_ident[EI_MAG3] != ELFMAG3) return -1;
71 dl_info.dlpi_phnum = ehdr->e_phnum;
  /external/elfutils/libasm/
asm_begin.c 69 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...]
disasm_cb.c 118 GElf_Ehdr *ehdr = gelf_getehdr (ctx->elf, &ehdr_mem); local
119 if (ehdr == NULL)
122 switch (ehdr->e_type)
  /external/tcpdump/
print-ipfc.c 84 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));
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...]
print-token.c 105 struct ether_header ehdr; local
119 extract_token_addrs(trp, (char*)ESRC(&ehdr), (char*)EDST(&ehdr));
124 *ESRC(&ehdr) &= 0x7f;
127 token_hdr_print(trp, length, ESRC(&ehdr), EDST(&ehdr));
146 token_hdr_print(trp, length, ESRC(&ehdr), EDST(&ehdr));
158 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr),
    [all...]
  /external/elfutils/libdw/
dwarf_begin_elf.c 88 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp)
118 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx,
176 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr)
181 result = check_section (result, ehdr, scn, false);
188 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp)
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->e_ident[EI_DATA] == ELFDATA2MSB
    [all...]
  /external/elfutils/libdwfl/
argp-std.c 228 GElf_Ehdr ehdr; local
230 gelf_getehdr (core, &ehdr));
dwfl_module_build_id.c 108 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
109 if (unlikely (ehdr == NULL))
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;

Completed in 295 milliseconds

1 2 3