/elf/ |
A D | dl-profstub.c | 30 GLRO(dl_mcount) ((ElfW(Addr)) RETURN_ADDRESS (0), (ElfW(Addr)) selfpc); in _dl_mcount_wrapper() 38 GLRO(dl_mcount) ((ElfW(Addr)) RETURN_ADDRESS (0), (ElfW(Addr)) selfpc); in _dl_mcount_wrapper_check()
|
A D | dl-fptr.c | 97 static ElfW(Addr) 98 make_fdesc (ElfW(Addr) ip, ElfW(Addr) gp) in make_fdesc() 169 const ElfW(Sym) *symtab in ElfW() 172 ElfW(Addr) *fptr_table; in ElfW() 195 (ElfW(Addr)) NULL, (ElfW(Addr)) fptr_table)) in ElfW() 204 ElfW(Addr) 206 ElfW(Addr) ip) in _dl_make_fptr() 209 const ElfW(Sym) *symtab; in _dl_make_fptr() 227 ElfW(Addr) fdesc in _dl_make_fptr() 304 ElfW(Addr) [all …]
|
A D | dl-version.c | 57 ElfW(Addr) def_offset; in match_symbol() 58 ElfW(Verdef) *def; in match_symbol() 110 ElfW(Verdaux) *aux = (ElfW(Verdaux) *) ((char *) def + def->vd_aux); in match_symbol() 159 ElfW(Dyn) *dyn; in _dl_check_map_versions() 161 ElfW(Dyn) *def; in _dl_check_map_versions() 180 ElfW(Verneed) *ent = (ElfW(Verneed) *) (map->l_addr + dyn->d_un.d_ptr); in _dl_check_map_versions() 199 ElfW(Vernaux) *aux; in _dl_check_map_versions() 252 ElfW(Verdef) *ent; in _dl_check_map_versions() 291 ElfW(Verneed) *ent; in _dl_check_map_versions() 295 ElfW(Vernaux) *aux; in _dl_check_map_versions() [all …]
|
A D | readelflib.c | 52 ElfW(Ehdr) *elf_header; in process_elf_file() 53 ElfW(Phdr) *elf_pheader, *segment; in process_elf_file() 54 ElfW(Dyn) *dynamic_segment, *dyn_entry; in process_elf_file() 57 elf_header = (ElfW(Ehdr) *) file_contents; in process_elf_file() 127 ElfW(Word) *abi_note = (ElfW(Word) *) (file_contents in process_elf_file() 129 ElfW(Addr) size = segment->p_filesz; in process_elf_file() 137 ElfW(Addr) align = segment->p_align; in process_elf_file() 147 ElfW(Addr) note_size in process_elf_file() 181 const ElfW(Addr) start = (ElfW(Addr)) (uintptr_t) note; in process_elf_file() 265 ElfW(Off) loadoff = -1; in process_elf_file() [all …]
|
A D | dynamic-link.h | 36 const ElfW(Rel) *reloc, const ElfW(Sym) *sym, 40 elf_machine_rel_relative (ElfW(Addr) l_addr, const ElfW(Rel) *reloc, 46 const ElfW(Rela) *reloc, const ElfW(Sym) *sym, 50 elf_machine_rela_relative (ElfW(Addr) l_addr, const ElfW(Rela) *reloc, 56 ElfW(Addr) l_addr, const ElfW(Rel) *reloc, 61 ElfW(Addr) l_addr, const ElfW(Rela) *reloc, 83 struct { ElfW(Addr) start, size; \ 84 __typeof (((ElfW(Dyn) *) 0)->d_un.d_val) nrelative; int lazy; } \ 98 ElfW(Addr) start = D_PTR ((map), l_info[DT_JMPREL]); \ 99 ElfW(Addr) size = (map)->l_info[DT_PLTRELSZ]->d_un.d_val; \
|
A D | link.h | 30 #define ElfW(type) _ElfW (Elf, __ELF_NATIVE_CLASS, type) macro 52 ElfW(Addr) r_brk; 62 ElfW(Addr) r_ldbase; /* Base address the linker is loaded at. */ 93 extern ElfW(Dyn) _DYNAMIC[]; 106 ElfW(Addr) l_addr; /* Difference between the address in the ELF 109 ElfW(Dyn) *l_ld; /* Dynamic section of the shared object. */ 157 ElfW(Addr) dlpi_addr; 159 const ElfW(Phdr) *dlpi_phdr; 160 ElfW(Half) dlpi_phnum;
|
A D | dl-addr.c | 27 struct link_map **mapp, const ElfW(Sym) **symbolp) in determine_info() 38 const ElfW(Sym) *symtab in determine_info() 39 = (const ElfW(Sym) *) D_PTR (match, l_info[DT_SYMTAB]); in determine_info() 42 ElfW(Word) strtabsize = match->l_info[DT_STRSZ]->d_un.d_val; in determine_info() 44 const ElfW(Sym) *matchsym = NULL; in determine_info() 68 matchsym = (ElfW(Sym) *) &symtab[symndx]; in determine_info() 76 const ElfW(Sym) *symtabend; in determine_info() 85 symtabend = (const ElfW(Sym) *) strtab; in determine_info() 97 matchsym = (ElfW(Sym) *) symtab; in determine_info() 125 struct link_map **mapp, const ElfW(Sym) **symbolp) in _dl_addr() [all …]
|
A D | dl-init.c | 59 ElfW(Dyn) *init_array = l->l_info[DT_INIT_ARRAY]; in call_init() 64 ElfW(Addr) *addrs; in call_init() 66 jm = l->l_info[DT_INIT_ARRAYSZ]->d_un.d_val / sizeof (ElfW(Addr)); in call_init() 68 addrs = (ElfW(Addr) *) (init_array->d_un.d_ptr + l->l_addr); in call_init() 78 ElfW(Dyn) *preinit_array = main_map->l_info[DT_PREINIT_ARRAY]; in _dl_init() 79 ElfW(Dyn) *preinit_array_size = main_map->l_info[DT_PREINIT_ARRAYSZ]; in _dl_init() 91 && (i = preinit_array_size->d_un.d_val / sizeof (ElfW(Addr))) > 0) in _dl_init() 93 ElfW(Addr) *addrs; in _dl_init() 100 addrs = (ElfW(Addr) *) (preinit_array->d_un.d_ptr + main_map->l_addr); in _dl_init()
|
A D | dl-lookup-direct.c | 27 static const ElfW(Sym) * in ElfW() function 32 const ElfW(Sym) *symtab = (const void *) D_PTR (map, l_info[DT_SYMTAB]); in ElfW() 33 const ElfW(Sym) *sym = &symtab[symidx]; in ElfW() 57 ElfW(Half) ndx = map->l_versyms[symidx] & 0x7fff; in ElfW() 70 const ElfW(Sym) * in ElfW() function 75 const ElfW(Addr) *bitmask = map->l_gnu_bitmask; in ElfW() 87 const ElfW(Sym) *sym = check_match (map, undef_name, in ElfW() 108 const ElfW(Sym) *sym = check_match (map, undef_name, in ElfW()
|
A D | dl-sym-post.h | 22 _dl_sym_find_caller_link_map (ElfW(Addr) caller) in _dl_sym_find_caller_link_map() 37 _dl_sym_post (lookup_t result, const ElfW(Sym) *ref, void *value, in _dl_sym_post() 38 ElfW(Addr) caller, struct link_map *match) in _dl_sym_post() 44 = DL_FIXUP_MAKE_VALUE (result, (ElfW(Addr)) value); in _dl_sym_post()
|
A D | do-rel.h | 42 ElfW(Addr) reladdr, ElfW(Addr) relsize, 43 __typeof (((ElfW(Dyn) *) 0)->d_un.d_val) nrelative, 46 const ElfW(Rel) *r = (const void *) reladdr; 47 const ElfW(Rel) *end = (const void *) (reladdr + relsize); 48 ElfW(Addr) l_addr = map->l_addr; 50 const ElfW(Rel) *r2 = NULL; 51 const ElfW(Rel) *end2 = NULL; 83 const ElfW(Sym) *const symtab = 85 const ElfW(Rel) *relative = r; 121 const ElfW(Half) *const version = [all …]
|
A D | dl-map-segments.h | 24 static __always_inline ElfW(Addr) in ElfW() function 25 _dl_map_segment (const struct loadcmd *c, ElfW(Addr) mappref, in ElfW() 29 return (ElfW(Addr)) __mmap ((void *) mappref, maplength, c->prot, in ElfW() 34 ElfW(Addr) maplen = (maplength >= c->mapalign in ElfW() 37 ElfW(Addr) map_start = (ElfW(Addr)) __mmap ((void *) mappref, maplen, in ElfW() 44 ElfW(Addr) map_start_aligned = ALIGN_UP (map_start, c->mapalign); in ElfW() 54 ElfW(Addr) delta = map_start_aligned - map_start; in ElfW() 57 ElfW(Addr) map_end = map_start_aligned + maplength; in ElfW() 76 const ElfW(Ehdr) *header, int type, in _dl_map_segments() 96 ElfW(Addr) mappref in _dl_map_segments() [all …]
|
A D | dl-load.h | 78 ElfW(Addr) mapstart, mapend, dataend, allocend, mapalign; 79 ElfW(Off) mapoff; 88 _dl_postprocess_loadcmd (struct link_map *l, const ElfW(Ehdr) *header, in _dl_postprocess_loadcmd() 97 >= header->e_phoff + header->e_phnum * sizeof (ElfW(Phdr)))) in _dl_postprocess_loadcmd() 117 const ElfW(Ehdr) *header, int type,
|
A D | dl-symaddr.c | 23 _dl_symbol_address (struct link_map *map, const ElfW(Sym) *ref) in _dl_symbol_address() 25 ElfW(Addr) value = SYMBOL_ADDRESS (map, ref, false); in _dl_symbol_address()
|
A D | dl-conflict.c | 39 while ((resolve_conflict_map->l_map_end < (ElfW(Addr)) (r_offset)) \ 40 || (resolve_conflict_map->l_map_start > (ElfW(Addr)) (r_offset))) \ 49 _dl_resolve_conflicts (struct link_map *l, ElfW(Rela) *conflict, in _dl_resolve_conflicts() 50 ElfW(Rela) *conflictend) in _dl_resolve_conflicts()
|
A D | dl-runtime.c | 45 struct link_map *l, ElfW(Word) reloc_arg) in attribute_hidden() 47 const ElfW(Sym) *const symtab in attribute_hidden() 56 const ElfW(Sym) *sym = &symtab[ELFW(R_SYM) (reloc->r_info)]; in attribute_hidden() 57 const ElfW(Sym) *refsym = sym; in attribute_hidden() 73 const ElfW(Half) *vernum = in attribute_hidden() 173 struct link_map *l, ElfW(Word) reloc_arg, in DL_FIXUP_VALUE_TYPE() 174 ElfW(Addr) retaddr, void *regs, long int *framesizep) in DL_FIXUP_VALUE_TYPE() 176 void (*mcount_fct) (ElfW(Addr), ElfW(Addr)) = _dl_mcount; in DL_FIXUP_VALUE_TYPE() 236 const ElfW(Sym) *const symtab in DL_FIXUP_VALUE_TYPE() 246 const ElfW(Sym) *defsym = refsym; in DL_FIXUP_VALUE_TYPE() [all …]
|
A D | dl-addr-obj.c | 64 _dl_addr_inside_object (struct link_map *l, const ElfW(Addr) addr) in _dl_addr_inside_object() 67 const ElfW(Addr) reladdr = addr - l->l_addr; in _dl_addr_inside_object()
|
A D | tst-audit13mod1.c | 79 ElfW(Addr) 80 pltenter (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltenter() 88 pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook, in pltexit()
|
A D | dl-audit.c | 140 unsigned int ndx = (ref - (ElfW(Sym) *) D_PTR (result, l_info[DT_SYMTAB])); in _dl_audit_symbind_alt() 144 ElfW(Sym) sym = *ref; in _dl_audit_symbind_alt() 145 sym.st_value = (ElfW(Addr)) *value; in _dl_audit_symbind_alt() 178 const ElfW(Sym) *defsym, DL_FIXUP_VALUE_TYPE *value, in rtld_hidden_def() 184 reloc_result->boundndx = (defsym - (ElfW(Sym) *) D_PTR (result, in rtld_hidden_def() 195 ElfW(Sym) sym = *defsym; in rtld_hidden_def() 263 ElfW(Sym) *defsym = ((ElfW(Sym) *) D_PTR (reloc_result->bound, in _dl_audit_pltenter() 268 ElfW(Sym) sym = *defsym; in _dl_audit_pltenter() 328 _dl_audit_pltexit (struct link_map *l, ElfW(Word) reloc_arg, in _dl_audit_pltexit() 339 ElfW(Sym) *defsym = ((ElfW(Sym) *) D_PTR (reloc_result->bound, in _dl_audit_pltexit() [all …]
|
A D | dl-sysdep.c | 81 ElfW(Addr) 83 void (*dl_main) (const ElfW(Phdr) *phdr, ElfW(Word) phnum, in _dl_sysdep_start() 84 ElfW(Addr) *user_entry, ElfW(auxv_t) *auxv)) in _dl_sysdep_start() 86 const ElfW(Phdr) *phdr = NULL; in _dl_sysdep_start() 87 ElfW(Word) phnum = 0; in _dl_sysdep_start() 88 ElfW(Addr) user_entry; in _dl_sysdep_start() 89 ElfW(auxv_t) *av; in _dl_sysdep_start() 113 user_entry = (ElfW(Addr)) ENTRY_POINT; in _dl_sysdep_start() 269 ElfW(auxv_t) *av; in _dl_show_auxv()
|
A D | dl-machine-reject-phdr.h | 27 elf_machine_reject_phdr_p (const ElfW(Phdr) *phdr, uint_fast16_t phnum, in elf_machine_reject_phdr_p()
|
A D | dl-lookup.c | 40 const ElfW(Sym) *s; 58 static const ElfW(Sym) * in ElfW() function 60 const ElfW(Sym) *const ref, in ElfW() 64 const ElfW(Sym) *const sym, in ElfW() 406 const ElfW(Sym) *sym; in do_lookup_x() 410 ElfW(Addr) bitmask_word in do_lookup_x() 482 const ElfW(Sym) *s; in do_lookup_x() 490 const ElfW(Rela) *rela in do_lookup_x() 510 const ElfW(Rel) *rel in do_lookup_x() 836 const ElfW(Sym) **ref, in _dl_lookup_symbol_x() [all …]
|
A D | dl-support.c | 57 ElfW(Addr) _dl_use_load_bias = -2; 164 ElfW(auxv_t) *_dl_auxv; 165 const ElfW(Phdr) *_dl_phdr; 187 ElfW(Word) _dl_stack_flags = DEFAULT_STACK_PERMS; 212 const ElfW(Ehdr) *_dl_sysinfo_dso; 247 _dl_aux_init (ElfW(auxv_t) *av) in _dl_aux_init() 407 for (const ElfW(Phdr) *ph = _dl_phdr; ph < &_dl_phdr[_dl_phnum]; ++ph) in _dl_non_dynamic_init() 446 _dl_audit_pltexit (struct link_map *l, ElfW(Word) reloc_arg, in _dl_audit_pltexit()
|
A D | dl-sym.c | 45 _dl_tls_symaddr (struct link_map *map, const ElfW(Sym) *ref) in _dl_tls_symaddr() 72 const ElfW(Sym) **refp; 88 const ElfW(Sym) *ref = NULL; in do_sym() 90 ElfW(Addr) caller = (ElfW(Addr)) who; in do_sym()
|
A D | dl-reloc-static-pie.c | 45 const ElfW(Phdr) *ph, *phdr = GL(dl_phdr); in _dl_relocate_static_pie() 78 main_map->l_info[DT_DEBUG]->d_un.d_ptr = (ElfW(Addr)) r; in _dl_relocate_static_pie()
|