/external/elfutils/libebl/ |
D | libebl.h | 63 typedef struct ebl Ebl; 84 extern int ebl_get_elfmachine (Ebl *ebl) __attribute__ ((__pure__)); 87 extern int ebl_get_elfclass (Ebl *ebl) __attribute__ ((__pure__)); 90 extern int ebl_get_elfdata (Ebl *ebl) __attribute__ ((__pure__)); 97 extern const char *ebl_backend_name (Ebl *ebl); 100 extern const char *ebl_object_type_name (Ebl *ebl, int object, 104 extern const char *ebl_reloc_type_name (Ebl *ebl, int reloc, 108 extern bool ebl_reloc_type_check (Ebl *ebl, int reloc); 111 extern bool ebl_reloc_valid_use (Ebl *ebl, int reloc); 115 extern Elf_Type ebl_reloc_simple_type (Ebl *ebl, int reloc); [all …]
|
D | eblclosebackend.c | 61 ebl_closebackend (Ebl *ebl) in ebl_closebackend() argument 63 if (ebl != NULL) in ebl_closebackend() 66 ebl->destr (ebl); in ebl_closebackend() 69 if (ebl->dlhandle != NULL) in ebl_closebackend() 70 (void) dlclose (ebl->dlhandle); in ebl_closebackend() 73 free (ebl); in ebl_closebackend()
|
D | eblrelocvaliduse.c | 59 ebl_reloc_valid_use (ebl, reloc) in ebl_reloc_valid_use() argument 60 Ebl *ebl; in ebl_reloc_valid_use() 63 return ebl != NULL ? ebl->reloc_valid_use (ebl->elf, reloc) : false;
|
D | eblgotpcreloccheck.c | 60 ebl_gotpc_reloc_check (ebl, reloc) in ebl_gotpc_reloc_check() argument 61 Ebl *ebl; in ebl_gotpc_reloc_check() 64 return ebl != NULL ? ebl->gotpc_reloc_check (ebl->elf, reloc) : false;
|
D | eblbsspltp.c | 59 ebl_bss_plt_p (ebl, ehdr) in ebl_bss_plt_p() argument 60 Ebl *ebl; in ebl_bss_plt_p() 63 return ebl == NULL ? false : ebl->bss_plt_p (ebl->elf, ehdr);
|
D | eblrelocsimpletype.c | 58 ebl_reloc_simple_type (ebl, reloc) in ebl_reloc_simple_type() argument 59 Ebl *ebl; in ebl_reloc_simple_type() 62 return ebl != NULL ? ebl->reloc_simple_type (ebl, reloc) : ELF_T_NUM;
|
D | ebl_check_special_section.c | 58 ebl_check_special_section (ebl, ndx, shdr, sname) in ebl_check_special_section() argument 59 Ebl *ebl; in ebl_check_special_section() 64 return ebl != NULL && ebl->check_special_section (ebl, ndx, shdr, sname);
|
D | ebl_syscall_abi.c | 58 ebl_syscall_abi (ebl, sp, pc, callno, args) in ebl_syscall_abi() argument 59 Ebl *ebl; in ebl_syscall_abi() 65 return ebl != NULL ? ebl->syscall_abi (ebl, sp, pc, callno, args) : -1;
|
D | ebl_check_special_symbol.c | 59 ebl_check_special_symbol (ebl, ehdr, sym, name, destshdr) in ebl_check_special_symbol() argument 60 Ebl *ebl; in ebl_check_special_symbol() 66 if (ebl == NULL) 69 return ebl->check_special_symbol (ebl->elf, ehdr, sym, name, destshdr);
|
D | eblreginfo.c | 59 ebl_register_info (ebl, regno, name, namelen, prefix, setname, bits, type) in ebl_register_info() argument 60 Ebl *ebl; in ebl_register_info() 69 return ebl == NULL ? -1 : ebl->register_info (ebl, regno, name, namelen,
|
D | eblsectionstripp.c | 59 ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr, in ebl_section_strip_p() argument 67 if (ebl_debugscn_p (ebl, name)) in ebl_section_strip_p() 72 Elf_Scn *scn_l = elf_getscn (ebl->elf, (shdr)->sh_info); in ebl_section_strip_p() 77 const char *s_l = elf_strptr (ebl->elf, ehdr->e_shstrndx, in ebl_section_strip_p() 79 if (s_l != NULL && ebl_debugscn_p (ebl, s_l)) in ebl_section_strip_p()
|
D | eblbackendname.c | 60 ebl_backend_name (ebl) in ebl_backend_name() argument 61 Ebl *ebl; in ebl_backend_name() 63 return ebl != NULL ? ebl->emulation : gettext ("No backend");
|
D | eblreloctypecheck.c | 59 ebl_reloc_type_check (ebl, reloc) in ebl_reloc_type_check() argument 60 Ebl *ebl; in ebl_reloc_type_check() 63 return ebl != NULL ? ebl->reloc_type_check (reloc) : false;
|
D | eblmachineflagcheck.c | 59 ebl_machine_flag_check (ebl, flags) in ebl_machine_flag_check() argument 60 Ebl *ebl; in ebl_machine_flag_check() 63 return ebl != NULL ? ebl->machine_flag_check (flags) : (flags == 0);
|
D | eblmachinesectionflagcheck.c | 58 ebl_machine_section_flag_check (ebl, flags) in ebl_machine_section_flag_check() argument 59 Ebl *ebl; in ebl_machine_section_flag_check() 62 return ebl != NULL ? ebl->machine_section_flag_check (flags) : (flags == 0);
|
D | eblretval.c | 59 ebl_return_value_location (ebl, functypedie, locops) in ebl_return_value_location() argument 60 Ebl *ebl; in ebl_return_value_location() 64 return ebl == NULL ? -1 : ebl->return_value_location (functypedie, locops);
|
D | eblreloctypename.c | 60 ebl_reloc_type_name (ebl, reloc, buf, len) in ebl_reloc_type_name() argument 61 Ebl *ebl; in ebl_reloc_type_name() 68 res = ebl != NULL ? ebl->reloc_type_name (reloc, buf, len) : NULL;
|
D | eblcheckobjattr.c | 59 ebl_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name) in ebl_check_object_attribute() argument 60 Ebl *ebl; in ebl_check_object_attribute() 67 if (ebl->check_object_attribute (ebl, vendor, tag, value,
|
/external/elfutils/src/ |
D | elflint.c | 104 static void check_note_section (Ebl *ebl, GElf_Ehdr *ehdr, 319 section_name (Ebl *ebl, int idx) in section_name() argument 324 shdr = gelf_getshdr (elf_getscn (ebl->elf, idx), &shdr_mem); in section_name() 326 return elf_strptr (ebl->elf, shstrndx, shdr->sh_name); in section_name() 353 check_elf_header (Ebl *ebl, GElf_Ehdr *ehdr, size_t size) in check_elf_header() argument 386 ebl_osabi_name (ebl, ehdr->e_ident[EI_OSABI], buf, sizeof (buf))); in check_elf_header() 443 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); in check_elf_header() 460 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); in check_elf_header() 469 if (!ebl_machine_flag_check (ebl, ehdr->e_flags)) in check_elf_header() 471 ebl_machine_flag_name (ebl, ehdr->e_flags, buf, sizeof (buf))); in check_elf_header() [all …]
|
D | objdump.c | 361 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rel() argument 365 int elfclass = gelf_getclass (ebl->elf); in show_relocs_rel() 386 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rel() 387 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rel() 395 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rel() 396 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rel() 399 elf_strptr (ebl->elf, symstrndx, sym->st_name)); in show_relocs_rel() 404 destshdr = gelf_getshdr (elf_getscn (ebl->elf, in show_relocs_rel() 412 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rel() 413 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rel() [all …]
|
D | readelf.c | 206 static void print_ehdr (Ebl *ebl, GElf_Ehdr *ehdr); 207 static void print_shdr (Ebl *ebl, GElf_Ehdr *ehdr); 208 static void print_phdr (Ebl *ebl, GElf_Ehdr *ehdr); 209 static void print_scngrp (Ebl *ebl); 210 static void print_dynamic (Ebl *ebl, GElf_Ehdr *ehdr); 211 static void print_relocs (Ebl *ebl); 212 static void handle_relocs_rel (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr); 213 static void handle_relocs_rela (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr); 214 static void print_symtab (Ebl *ebl, int type); 215 static void handle_symtab (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr); [all …]
|
/external/elfutils/backends/ |
D | sparc_regs.c | 37 sparc_register_info (Ebl *ebl, in sparc_register_info() argument 42 const int nfp = 32 + (ebl->machine == EM_SPARC ? 0 : 16); in sparc_register_info() 43 const int nspec = ebl->machine == EM_SPARC ? 8 : 6; in sparc_register_info() 51 *bits = ebl->machine == EM_SPARC ? 32 : 64; in sparc_register_info() 66 if ((ebl->machine != EM_SPARC ? 0 : 4) + 1 - (unsigned int) regno <= 1) in sparc_register_info() 68 return stpncpy (name, names[ebl->machine != EM_SPARC][regno], in sparc_register_info()
|
D | ia64_symbol.c | 115 ia64_reloc_simple_type (Ebl *ebl, int type) in ia64_reloc_simple_type() argument 126 if (ebl->data == ELFDATA2MSB) in ia64_reloc_simple_type() 131 if (ebl->data == ELFDATA2LSB) in ia64_reloc_simple_type() 136 if (ebl->data == ELFDATA2MSB) in ia64_reloc_simple_type() 141 if (ebl->data == ELFDATA2LSB) in ia64_reloc_simple_type()
|
/external/elfutils/libasm/ |
D | disasm_begin.c | 38 disasm_begin (Ebl *ebl, Elf *elf, DisasmGetSymCB_t symcb) in disasm_begin() argument 40 if (ebl == NULL) in disasm_begin() 43 if (ebl->disasm == NULL) in disasm_begin() 56 ctx->ebl = ebl; in disasm_begin()
|
D | asm_begin.c | 67 prepare_binary_output (AsmCtx_t *result, Ebl *ebl) in prepare_binary_output() argument 85 int class = ebl_get_elfclass (ebl); in prepare_binary_output() 99 ehdr->e_machine = ebl_get_elfmachine (ebl); in prepare_binary_output() 101 ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl); in prepare_binary_output() 127 asm_begin (fname, ebl, textp) in asm_begin() argument 129 Ebl *ebl; 178 result = prepare_binary_output (result, ebl);
|