Home
last modified time | relevance | path

Searched refs:ebl (Results 1 – 25 of 156) sorted by relevance

1234567

/external/elfutils/src/libebl/
Dlibebl.h42 typedef struct ebl Ebl;
63 extern int ebl_get_elfmachine (Ebl *ebl) __attribute__ ((__pure__));
66 extern int ebl_get_elfclass (Ebl *ebl) __attribute__ ((__pure__));
69 extern int ebl_get_elfdata (Ebl *ebl) __attribute__ ((__pure__));
76 extern const char *ebl_backend_name (Ebl *ebl);
79 extern const char *ebl_object_type_name (Ebl *ebl, int object,
83 extern const char *ebl_reloc_type_name (Ebl *ebl, int reloc,
87 extern bool ebl_reloc_type_check (Ebl *ebl, int reloc);
90 extern bool ebl_reloc_valid_use (Ebl *ebl, int reloc);
94 extern Elf_Type ebl_reloc_simple_type (Ebl *ebl, int reloc);
[all …]
Deblinitreg.c37 ebl_set_initial_registers_tid (Ebl *ebl, pid_t tid, in ebl_set_initial_registers_tid() argument
43 assert (ebl->set_initial_registers_tid != NULL); in ebl_set_initial_registers_tid()
44 return ebl->set_initial_registers_tid (tid, setfunc, arg); in ebl_set_initial_registers_tid()
48 ebl_frame_nregs (Ebl *ebl) in ebl_frame_nregs() argument
50 return ebl == NULL ? 0 : ebl->frame_nregs; in ebl_frame_nregs()
54 ebl_func_addr_mask (Ebl *ebl) in ebl_func_addr_mask() argument
56 return ((ebl == NULL || ebl->func_addr_mask == 0) in ebl_func_addr_mask()
57 ? ~(GElf_Addr)0 : ebl->func_addr_mask); in ebl_func_addr_mask()
Deblclosebackend.c40 ebl_closebackend (Ebl *ebl) in ebl_closebackend() argument
42 if (ebl != NULL) in ebl_closebackend()
45 ebl->destr (ebl); in ebl_closebackend()
48 if (ebl->dlhandle != NULL) in ebl_closebackend()
49 (void) dlclose (ebl->dlhandle); in ebl_closebackend()
52 free (ebl); in ebl_closebackend()
Deblbsspltp.c38 ebl_bss_plt_p (ebl) in ebl_bss_plt_p() argument
39 Ebl *ebl; in ebl_bss_plt_p()
41 return ebl == NULL ? false : ebl->bss_plt_p (ebl->elf);
Deblrelocvaliduse.c38 ebl_reloc_valid_use (ebl, reloc) in ebl_reloc_valid_use() argument
39 Ebl *ebl; in ebl_reloc_valid_use()
42 return ebl != NULL ? ebl->reloc_valid_use (ebl->elf, reloc) : false;
Debldwarftoregno.c36 ebl_dwarf_to_regno (Ebl *ebl, unsigned *regno) in ebl_dwarf_to_regno() argument
38 if (ebl == NULL) in ebl_dwarf_to_regno()
40 return ebl->dwarf_to_regno == NULL ? true : ebl->dwarf_to_regno (ebl, regno); in ebl_dwarf_to_regno()
Deblgotpcreloccheck.c39 ebl_gotpc_reloc_check (ebl, reloc) in ebl_gotpc_reloc_check() argument
40 Ebl *ebl; in ebl_gotpc_reloc_check()
43 return ebl != NULL ? ebl->gotpc_reloc_check (ebl->elf, reloc) : false;
Deblabicfi.c37 ebl_abi_cfi (ebl, abi_info) in ebl_abi_cfi() argument
38 Ebl *ebl; in ebl_abi_cfi()
41 return ebl == NULL ? -1 : ebl->abi_cfi (ebl, abi_info);
Deblrelocsimpletype.c37 ebl_reloc_simple_type (ebl, reloc) in ebl_reloc_simple_type() argument
38 Ebl *ebl; in ebl_reloc_simple_type()
41 return ebl != NULL ? ebl->reloc_simple_type (ebl, reloc) : ELF_T_NUM;
Deblresolvesym.c37 ebl_resolve_sym_value (Ebl *ebl, GElf_Addr *addr) in ebl_resolve_sym_value() argument
39 if (ebl == NULL || ebl->resolve_sym_value == NULL) in ebl_resolve_sym_value()
42 return ebl->resolve_sym_value (ebl, addr); in ebl_resolve_sym_value()
Deblnormalizepc.c36 ebl_normalize_pc (Ebl *ebl, Dwarf_Addr *pc) in ebl_normalize_pc() argument
38 if (ebl != NULL && ebl->normalize_pc != NULL) in ebl_normalize_pc()
39 ebl->normalize_pc (ebl, pc); in ebl_normalize_pc()
Debl_check_special_section.c37 ebl_check_special_section (ebl, ndx, shdr, sname) in ebl_check_special_section() argument
38 Ebl *ebl; in ebl_check_special_section()
43 return ebl != NULL && ebl->check_special_section (ebl, ndx, shdr, sname);
Debl_syscall_abi.c37 ebl_syscall_abi (ebl, sp, pc, callno, args) in ebl_syscall_abi() argument
38 Ebl *ebl; in ebl_syscall_abi()
44 return ebl != NULL ? ebl->syscall_abi (ebl, sp, pc, callno, args) : -1;
Debl_check_special_symbol.c38 ebl_check_special_symbol (ebl, ehdr, sym, name, destshdr) in ebl_check_special_symbol() argument
39 Ebl *ebl; in ebl_check_special_symbol()
45 if (ebl == NULL)
48 return ebl->check_special_symbol (ebl->elf, ehdr, sym, name, destshdr);
Deblunwind.c36 ebl_unwind (Ebl *ebl, Dwarf_Addr pc, ebl_tid_registers_t *setfunc, in ebl_unwind() argument
40 if (ebl == NULL || ebl->unwind == NULL) in ebl_unwind()
42 return ebl->unwind (ebl, pc, setfunc, getfunc, readfunc, arg, signal_framep); in ebl_unwind()
Deblreginfo.c38 ebl_register_info (ebl, regno, name, namelen, prefix, setname, bits, type) in ebl_register_info() argument
39 Ebl *ebl; in ebl_register_info()
48 return ebl == NULL ? -1 : ebl->register_info (ebl, regno, name, namelen,
Debl-hooks.h143 ssize_t EBLHOOK(register_info) (Ebl *ebl,
149 int EBLHOOK(syscall_abi) (Ebl *ebl, int *sp, int *pc,
159 int EBLHOOK(abi_cfi) (Ebl *ebl, Dwarf_CIE *abi_info);
170 bool EBLHOOK(dwarf_to_regno) (Ebl *ebl, unsigned *regno);
174 void EBLHOOK(normalize_pc) (Ebl *ebl, Dwarf_Addr *pc);
184 bool EBLHOOK(unwind) (Ebl *ebl, Dwarf_Addr pc, ebl_tid_registers_t *setfunc,
192 bool EBLHOOK(resolve_sym_value) (Ebl *ebl, GElf_Addr *addr);
195 void EBLHOOK(destr) (struct ebl *);
/external/elfutils/src/src/
Delflint.c96 static void check_note_section (Ebl *ebl, GElf_Ehdr *ehdr,
314 section_name (Ebl *ebl, int idx) in section_name() argument
323 shdr = gelf_getshdr (elf_getscn (ebl->elf, idx), &shdr_mem); in section_name()
327 ret = elf_strptr (ebl->elf, shstrndx, shdr->sh_name); in section_name()
354 check_elf_header (Ebl *ebl, GElf_Ehdr *ehdr, size_t size) in check_elf_header() argument
388 ebl_osabi_name (ebl, ehdr->e_ident[EI_OSABI], buf, sizeof (buf))); in check_elf_header()
445 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); in check_elf_header()
462 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); in check_elf_header()
476 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem); in check_elf_header()
489 if (!ebl_machine_flag_check (ebl, ehdr->e_flags)) in check_elf_header()
[all …]
Dobjdump.c361 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata, in show_relocs_x() argument
365 int elfclass = gelf_getclass (ebl->elf); in show_relocs_x()
370 ebl_reloc_type_name (ebl, GELF_R_TYPE (r_info), buf, sizeof (buf))); in show_relocs_x()
382 elf_strptr (ebl->elf, symstrndx, sym->st_name)); in show_relocs_x()
387 destshdr = gelf_getshdr (elf_getscn (ebl->elf, in show_relocs_x()
399 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name)); in show_relocs_x()
417 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rel() argument
421 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT); in show_relocs_rel()
431 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel()
438 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rela() argument
[all …]
Dreadelf.c240 static void print_ehdr (Ebl *ebl, GElf_Ehdr *ehdr);
241 static void print_shdr (Ebl *ebl, GElf_Ehdr *ehdr);
242 static void print_phdr (Ebl *ebl, GElf_Ehdr *ehdr);
243 static void print_scngrp (Ebl *ebl);
244 static void print_dynamic (Ebl *ebl);
245 static void print_relocs (Ebl *ebl, GElf_Ehdr *ehdr);
246 static void handle_relocs_rel (Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn,
248 static void handle_relocs_rela (Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn,
250 static void print_symtab (Ebl *ebl, int type);
251 static void handle_symtab (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
[all …]
/external/elfutils/src/backends/
Dppc64_resolve_sym.c44 ppc64_resolve_sym_value (Ebl *ebl, GElf_Addr *addr) in ppc64_resolve_sym_value() argument
46 if (ebl->fd_data != NULL && *addr >= ebl->fd_addr in ppc64_resolve_sym_value()
47 && *addr + sizeof (Elf64_Addr) <= ebl->fd_addr + ebl->fd_data->d_size) in ppc64_resolve_sym_value()
49 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (ebl->elf, &ehdr_mem); in ppc64_resolve_sym_value()
53 opd_in.d_buf = ebl->fd_data->d_buf + (*addr - ebl->fd_addr); in ppc64_resolve_sym_value()
Dsparc_regs.c40 sparc_register_info (Ebl *ebl, in sparc_register_info() argument
45 const int nfp = 32 + (ebl->machine == EM_SPARC ? 0 : 16); in sparc_register_info()
46 const int nspec = ebl->machine == EM_SPARC ? 8 : 6; in sparc_register_info()
54 *bits = ebl->machine == EM_SPARC ? 32 : 64; in sparc_register_info()
69 if ((ebl->machine != EM_SPARC ? 0 : 4) + 1 - (unsigned int) regno <= 1) in sparc_register_info()
71 return stpncpy (name, names[ebl->machine != EM_SPARC][regno], in sparc_register_info()
/external/elfutils/src/libdwfl/
Ddwfl_frame.c46 Ebl *ebl = state->thread->process->ebl; in state_fetch_pc() local
48 if (ebl_abi_cfi (ebl, &abi_info) != 0) in state_fetch_pc()
55 if (ra >= ebl_frame_nregs (ebl)) in state_fetch_pc()
90 Ebl *ebl = thread->process->ebl; in state_alloc() local
91 size_t nregs = ebl_frame_nregs (ebl); in state_alloc()
118 ebl_closebackend (process->ebl); in __libdwfl_process_free()
156 Ebl *ebl; in dwfl_attach_state() local
160 ebl = ebl_openbackend (elf); in dwfl_attach_state()
165 ebl = NULL; in dwfl_attach_state()
183 ebl = mod->ebl; in dwfl_attach_state()
[all …]
Dframe_unwind.c54 Ebl *ebl = state->thread->process->ebl; in __libdwfl_frame_reg_get() local
55 if (! ebl_dwarf_to_regno (ebl, &regno)) in __libdwfl_frame_reg_get()
57 if (regno >= ebl_frame_nregs (ebl)) in __libdwfl_frame_reg_get()
71 Ebl *ebl = state->thread->process->ebl; in __libdwfl_frame_reg_set() local
72 if (! ebl_dwarf_to_regno (ebl, &regno)) in __libdwfl_frame_reg_set()
74 if (regno >= ebl_frame_nregs (ebl)) in __libdwfl_frame_reg_set()
77 if (ebl_get_elfclass (ebl) == ELFCLASS32) in __libdwfl_frame_reg_set()
503 Ebl *ebl = process->ebl; in new_unwound() local
504 size_t nregs = ebl_frame_nregs (ebl); in new_unwound()
536 Ebl *ebl = process->ebl; in handle_cfi() local
[all …]
/external/elfutils/src/libasm/
Ddisasm_begin.c41 disasm_begin (Ebl *ebl, Elf *elf, DisasmGetSymCB_t symcb) in disasm_begin() argument
43 if (ebl == NULL) in disasm_begin()
46 if (ebl->disasm == NULL) in disasm_begin()
59 ctx->ebl = ebl; in disasm_begin()

1234567