Searched refs:ehdr (Results 1 - 25 of 118) sorted by path

12345

/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cc875 Elf_Ehdr *ehdr = (Elf_Ehdr *)base; local
876 char *phdrs = base + ehdr->e_phoff;
877 char *phdrs_end = phdrs + ehdr->e_phnum * ehdr->e_phentsize;
883 for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) {
892 for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) {
/external/elfutils/backends/
H A Daarch64_symbol.c65 aarch64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, argument
71 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
82 sname = elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name);
H A Dalpha_symbol.c133 GElf_Ehdr *ehdr __attribute__ ((unused)),
H A Dcommon-reloc.c115 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
116 assert (ehdr != NULL);
117 uint8_t type = ehdr->e_type;
H A Dppc64_init.c80 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local
81 if (ehdr != NULL && ehdr->e_type != ET_REL)
94 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 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.c125 ppc_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym, argument
142 const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
/external/elfutils/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...]
H A Dasm_end.c81 GElf_Ehdr *ehdr; local
436 ehdr = gelf_getehdr (ctx->out.elf, &ehdr_mem);
437 assert (ehdr != NULL);
457 ehdr->e_shstrndx = SHN_XINDEX;
460 ehdr->e_shstrndx = elf_ndxscn (shstrscn);
462 gelf_update_ehdr (ctx->out.elf, ehdr);
H A Ddisasm_cb.c121 GElf_Ehdr *ehdr = gelf_getehdr (ctx->elf, &ehdr_mem); local
122 if (ehdr == NULL)
125 switch (ehdr->e_type)
/external/elfutils/libdw/
H A Ddwarf_begin_elf.c68 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) argument
98 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx,
217 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr) argument
222 result = check_section (result, ehdr, scn, false);
229 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) argument
278 result = check_section (result, ehdr, scn, true);
290 GElf_Ehdr *ehdr; local
295 ehdr = gelf_getehdr (elf, &ehdr_mem);
296 if (ehdr == NULL)
322 if ((BYTE_ORDER == LITTLE_ENDIAN && ehdr
[all...]
H A Ddwarf_getcfi_elf.c74 const GElf_Ehdr *ehdr, GElf_Addr *eh_frame_vaddr,
96 .e_ident = ehdr->e_ident,
126 getcfi_gnu_eh_frame (Elf *elf, const GElf_Ehdr *ehdr, const GElf_Phdr *phdr) argument
143 phdr->p_vaddr, ehdr,
150 vsize = encoded_value_size (data, ehdr->e_ident, search_table_encoding,
194 getcfi_phdr (Elf *elf, const GElf_Ehdr *ehdr) argument
207 return getcfi_gnu_eh_frame (elf, ehdr, phdr);
215 getcfi_scn_eh_frame (Elf *elf, const GElf_Ehdr *ehdr, argument
239 hdr_vaddr, ehdr, &eh_frame_vaddr,
246 vsize = encoded_value_size (hdr_data, ehdr
73 parse_eh_frame_hdr(const uint8_t *hdr, size_t hdr_size, GElf_Addr hdr_vaddr, const GElf_Ehdr *ehdr, GElf_Addr *eh_frame_vaddr, size_t *table_entries, uint8_t *table_encoding) argument
271 getcfi_shdr(Elf *elf, const GElf_Ehdr *ehdr) argument
323 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem); local
[all...]
/external/elfutils/libdwelf/
H A Ddwelf_elf_gnu_build_id.c131 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local
132 if (unlikely (ehdr == NULL))
138 assert (ehdr->e_type != ET_REL || mod != NULL);
140 return find_elf_build_id (mod, ehdr->e_type, elf,
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/libdwfl/
H A Ddwfl_module_getdwarf.c78 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (file->elf, &ehdr_mem);
79 if (ehdr == NULL)
89 if (ehdr->e_type != ET_REL)
153 mod->e_type = ehdr->e_type;
304 /* Decode the section. It consists of the original ehdr, phdrs,
311 } ehdr; local
314 .d_buf = &ehdr,
315 .d_size = sizeof ehdr,
332 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
334 if (ehdr
696 translate_offs(GElf_Addr adjust, Dwfl_Module *mod, size_t phnum, GElf_Addr addrs[i_max], GElf_Xword strsz, GElf_Ehdr *ehdr) argument
821 GElf_Ehdr *ehdr = gelf_getehdr (mod->main.elf, &ehdr_mem); local
[all...]
H A Ddwfl_report_elf.c49 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local
50 if (ehdr == NULL)
60 switch (ehdr->e_type)
233 *e_typep = ehdr->e_type;
H A Ddwfl_segment_report_module.c340 } ehdr; local
354 .d_buf = &ehdr,
355 .d_size = sizeof ehdr,
367 e_type = ehdr.e32.e_type;
368 phoff = ehdr.e32.e_phoff;
369 phnum = ehdr.e32.e_phnum;
370 phentsize = ehdr.e32.e_phentsize;
373 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr
[all...]
H A Delf-from-memory.c107 } ehdr; local
117 .d_buf = &ehdr,
118 .d_size = sizeof ehdr,
137 phoff = ehdr.e32.e_phoff;
138 phnum = ehdr.e32.e_phnum;
139 phentsize = ehdr.e32.e_phentsize;
142 shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize;
149 phoff = ehdr
[all...]
H A Dlink_map.c517 GElf_Ehdr ehdr;
518 if (unlikely (gelf_getehdr (mod->main.elf, &ehdr) == NULL))
526 if (ehdr.e_entry == 0)
531 if (ehdr.e_entry != at_entry)
561 && (phdr->p_offset & -align) == (ehdr.e_phoff & -align))
568 if (ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr != at_phdr)
576 if (((ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr) & -align)
581 GElf_Addr bias = (at_phdr - (ehdr.e_phoff - phdr->p_offset
586 if (at_entry != 0 && at_entry != ehdr.e_entry + bias)
633 size_t buffer_available = addrsize (ehdr
514 GElf_Ehdr ehdr; local
821 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem); local
[all...]
H A Dlinux-core-attach.c331 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (core, &ehdr_mem); local
332 if (ehdr == NULL)
337 if (ehdr->e_type != ET_CORE)
H A Drelocate.c320 const GElf_Ehdr * const ehdr,
432 ehdr->e_ident[EI_DATA]);
453 ehdr->e_ident[EI_DATA]);
478 relocate_section (Dwfl_Module *mod, Elf *relocated, const GElf_Ehdr *ehdr, argument
549 GElf_Off shdrs_start = ehdr->e_shoff;
562 GElf_Off phdrs_start = ehdr->e_phoff;
597 result = relocate (mod, relocated, reloc_symtab, tdata, ehdr,
627 result = relocate (mod, relocated, reloc_symtab, tdata, ehdr,
707 const GElf_Ehdr *ehdr = gelf_getehdr (debugfile, &ehdr_mem); local
708 if (ehdr
316 relocate(Dwfl_Module * const mod, Elf * const relocated, struct reloc_symtab_cache * const reloc_symtab, Elf_Data * const tdata, const GElf_Ehdr * const ehdr, GElf_Addr offset, const GElf_Sxword *addend, int rtype, int symndx) argument
[all...]
/external/elfutils/libebl/
H A Debl_check_special_symbol.c38 ebl_check_special_symbol (Ebl *ebl, GElf_Ehdr *ehdr, const GElf_Sym *sym, argument
44 return ebl->check_special_symbol (ebl->elf, ehdr, sym, name, destshdr);
H A Deblopenbackend.c184 static bool default_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr,
299 assert (offsetof (Elf, state.elf32.ehdr)
300 == offsetof (Elf, state.elf64.ehdr));
311 result->machine = elf->state.elf32.ehdr->e_machine;
312 result->class = elf->state.elf32.ehdr->e_ident[EI_CLASS];
313 result->data = elf->state.elf32.ehdr->e_ident[EI_DATA];
400 GElf_Ehdr *ehdr; local
403 ehdr = gelf_getehdr (elf, &ehdr_mem);
404 if (ehdr == NULL)
411 return openbackend (elf, NULL, ehdr
[all...]
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,

Completed in 324 milliseconds

12345