/external/elfutils/libelf/ |
H A D | 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));
|
H A D | 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));
|
H A D | 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...] |
/external/elfutils/libasm/ |
H A D | 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...] |
/external/elfutils/tests/ |
H A D | scnnames.c | 40 GElf_Ehdr ehdr; local 72 if (gelf_getehdr (elf, &ehdr) == NULL) 78 strndx = ehdr.e_shstrndx;
|
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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)
|
H A D | newfile.c | 34 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 D | showptable.c | 40 GElf_Ehdr ehdr; local 71 if (gelf_getehdr (elf, &ehdr) == NULL) 84 for (cnt = 0; cnt < ehdr.e_phnum; ++cnt)
|
H A D | 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 [all...] |
H A D | 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),
|
H A D | 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),
|
H A D | 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),
|
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | asm-tst3.c | 71 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 D | ppc64_symbol.c | 91 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 D | ppc_symbol.c | 81 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 D | eblsectionstripp.c | 59 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 D | 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));
|
/external/elfutils/libdw/ |
H A D | dwarf_begin_elf.c | 88 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 D | argp-std.c | 228 GElf_Ehdr ehdr; local 230 gelf_getehdr (core, &ehdr));
|
H A D | dwfl_module_build_id.c | 108 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local 109 if (unlikely (ehdr == NULL))
|
/external/elfutils/src/ |
H A D | 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)
|