/titanic_50/usr/src/cmd/sgs/rtld/common/ |
H A D | _rtld.h | 80 Rt_map *(*fct_new_lmp)(Lm_list *, Aliste, Fdesc *, Addr, size_t, 81 void *, Rt_map *, int *); 87 int (*fct_needed)(Lm_list *, Aliste, Rt_map *, int *); 93 int (*fct_reloc)(Rt_map *, uint_t, int *, APlist **); 102 int (*fct_fix_name)(const char *, Rt_map *, Alist **, Aliste, 109 void (*fct_dladdr)(ulong_t, Rt_map *, Dl_info *, void **, int); 194 Rt_map *rl_lmp; /* defining object */ 220 Rt_map *r_rlmp; /* reference link map */ 221 Rt_map *r_dlmp; /* definition link map */ 233 Rt_map *fd_lmp; /* existing link-map pointer */ [all …]
|
H A D | _audit.h | 60 Rt_map *ac_lmp; /* audit library identifier */ 96 Rt_map *al_lmp; /* object link-map */ 128 extern int audit_setup(Rt_map *, Audit_desc *, uint_t, int *); 130 extern void audit_desc_cleanup(Rt_map *); 131 extern void audit_info_cleanup(Rt_map *); 133 extern int audit_objopen(Rt_map *, Rt_map *); 134 extern int audit_objfilter(Rt_map *, const char *, Rt_map *, 136 extern void audit_activity(Rt_map *, uint_t); 137 extern void audit_preinit(Rt_map *); 138 extern char *audit_objsearch(Rt_map *, const char *, uint_t); [all …]
|
H A D | _elf.h | 44 extern int elf_config(Rt_map *, int); 49 extern int elf_copy_gen(Rt_map *); 51 extern int elf_copy_reloc(char *, Sym *, Rt_map *, void *, Sym *, 52 Rt_map *, const void *); 55 extern Rt_map *elf_lazy_load(Rt_map *, Slookup *, uint_t, const char *, 60 extern Rt_map *elf_new_lmp(Lm_list *, Aliste, Fdesc *, Addr, size_t, void *, 61 Rt_map *, int *); 62 extern Rt_map *elf_obj_file(Lm_list *, Aliste, Rt_map *, const char *, 64 extern Rt_map *elf_obj_fini(Lm_list *, Rt_map *, Rt_map *, int *); 67 extern void elf_plt2_init(uint_t *, Rt_map *); [all …]
|
H A D | tsort.c | 55 Rt_map **s_lmpa; /* link-map[] (returned to caller) */ 56 Rt_map *s_lmp; /* originating link-map */ 57 Rt_map **s_stack; /* strongly connected component stack */ 74 Rt_map *lmp1 = *((Rt_map **)lmpp1); in compare() 75 Rt_map *lmp2 = *((Rt_map **)lmpp2); in compare() 95 Rt_map *lmp; in sort_scc() 109 Rt_map *lmp, *lmp2; in sort_scc() 124 Rt_map *lmp3 = bdp->b_depend; in sort_scc() 149 qsort(&(sort->s_lmpa[fndx]), sort->s_lndx - fndx, sizeof (Rt_map *), in sort_scc() 216 Rt_map *clmp = bdp->b_caller; in sort_scc() [all …]
|
H A D | audit.c | 131 _audit_get_head_client(Rt_map *hlmp, Rt_map *almp) in _audit_get_head_client() 145 _audit_create_head_client(Rt_map *hlmp, Rt_map *almp) in _audit_create_head_client() 174 _audit_client(Audit_info *aip, Rt_map *almp) in _audit_client() 194 _audit_objfilter(APlist *list, Rt_map *frlmp, const char *ref, Rt_map *felmp, in _audit_objfilter() 203 Rt_map *almp = alp->al_lmp; in _audit_objfilter() 232 audit_objfilter(Rt_map *frlmp, const char *ref, Rt_map *felmp, uint_t flags) in audit_objfilter() 264 _audit_objsearch(APlist *list, char *oname, Rt_map *clmp, uint_t flags) in _audit_objsearch() 272 Rt_map *almp = alp->al_lmp; in _audit_objsearch() 306 audit_objsearch(Rt_map *clmp, const char *name, uint_t flags) in audit_objsearch() 335 _audit_activity(APlist *list, Rt_map *clmp, uint_t flags, Boolean client) in _audit_activity() [all …]
|
H A D | dlfcns.c | 62 Rt_map * 73 Rt_map *lmp; in _caller() 89 return ((Rt_map *)lml_main.lm_head); in _caller() 104 Rt_map *clmp; in dlerror() 128 hdl_add(Grp_hdl *ghp, Rt_map *lmp, uint_t dflags, int *alep) in hdl_add() 200 hdl_create(Lm_list *lml, Rt_map *rlmp, Rt_map *clmp, uint_t hflags, in hdl_create() 382 hdl_initialize(Grp_hdl *ghp, Rt_map *nlmp, int mode, int promote) in hdl_initialize() 404 Rt_map *lmp = gdp->gd_depend; in hdl_initialize() 417 Rt_map *dlmp = bdp->b_depend; in hdl_initialize() 457 dlclose_core(Grp_hdl *ghp, Rt_map *clmp, Lm_list *lml) in dlclose_core() [all …]
|
H A D | analyze.c | 59 load_filtees(Rt_map *lmp, int *in_nfavl) in load_filtees() 104 Rt_map * 105 analyze_lmc(Lm_list *lml, Aliste nlmco, Rt_map *nlmp, Rt_map *clmp, in analyze_lmc() 108 Rt_map *lmp; in analyze_lmc() 150 Rt_map *olmp; in analyze_lmc() 239 are_bits_zero(Rt_map *dlmp, Sym *dsym, int dest) in are_bits_zero() 287 relocate_so(Lm_list *lml, Rt_map *lmp, int *relocated, int now, int *in_nfavl) in relocate_so() 338 _relocate_lmc(Lm_list *lml, Aliste lmco, Rt_map *nlmp, int *relocated, in _relocate_lmc() 341 Rt_map *lmp; in _relocate_lmc() 406 Rt_map *lmp; in _relocate_lmc() [all …]
|
H A D | remove.c | 72 purge_exit_handlers(Lm_list *lml, Rt_map **tobj) in purge_exit_handlers() 75 Rt_map **_tobj; in purge_exit_handlers() 90 Rt_map *lmp = *_tobj; in purge_exit_handlers() 111 Rt_map *lmp = *_tobj; in purge_exit_handlers() 212 remove_so(Lm_list *lml, Rt_map *lmp, Rt_map *clmp) in remove_so() 259 Rt_map *hlmp = nlml->lm_head; in remove_so() 419 remove_lists(Rt_map *lmp, int lazy) in remove_lists() 428 Rt_map *dlmp = bdp->b_depend; in remove_lists() 445 Rt_map *clmp = bdp->b_caller; in remove_lists() 508 remove_incomplete(Lm_list *lml, Aliste lmco, Rt_map *clmp) in remove_incomplete() [all …]
|
H A D | object.c | 42 static Rt_map *olmp = NULL; 55 static Rt_map * 99 lmsz = S_DROUND(sizeof (Rt_map)) + sizeof (Rt_elfp); in elf_obj_init() 157 Rt_map * 158 elf_obj_file(Lm_list *lml, Aliste lmco, Rt_map *clmp, const char *name, in elf_obj_file() 232 Rt_map * 233 elf_obj_fini(Lm_list *lml, Rt_map *lmp, Rt_map *clmp, int *in_nfavl) in elf_obj_fini() 236 Rt_map *nlmp, *tlmp; in elf_obj_fini()
|
H A D | _inline_reloc.h | 38 _elf_reloc_relative(ulong_t rbgn, ulong_t base, Rt_map *lmp, APlist **textrel, in _elf_reloc_relative() 98 Rt_map *lmp, APlist **textrel, int add) in elf_reloc_relative() 127 ulong_t base, Rt_map *lmp, APlist **textrel, int add) in elf_reloc_relative_count() 145 is_sym_deferred(ulong_t rbgn, ulong_t base, Rt_map *lmp, APlist **textrel, in is_sym_deferred()
|
H A D | a.out.c | 70 static void aout_dladdr(ulong_t, Rt_map *, Dl_info *, void **, int); 75 static int aout_fix_name(const char *, Rt_map *, Alist **, Aliste, uint_t); 79 static int aout_needed(Lm_list *, Aliste, Rt_map *, int *); 126 aout_fix_name(const char *oname, Rt_map *clmp, Alist **alpp, Aliste alni, in aout_fix_name() 197 aout_needed(Lm_list *lml, Aliste lmco, Rt_map *clmp, int *in_nfavl) in aout_needed() 205 Rt_map *nlmp; in aout_needed() 371 aout_findsb(const char *aname, Rt_map *lmp, int flag) in aout_findsb() 476 Rt_map *ilmp = slp->sl_imap; in aout_find_sym() 504 Rt_map * 506 void *odyn, Rt_map *clmp, int *in_nfavl) in aout_new_lmp() [all …]
|
H A D | util.c | 349 Rt_map * 380 fpavl_insert(Lm_list *lml, Rt_map *lmp, const char *name, avl_index_t where) in fpavl_insert() 387 Rt_map *_lmp = fpavl_recorded(lml, name, hash, &where); in fpavl_insert() 420 fpavl_remove(Rt_map *lmp) in fpavl_remove() 615 is_dep_init(Rt_map *dlmp, Rt_map *clmp) in is_dep_init() 617 Rt_map **tobj; in is_dep_init() 646 if ((tobj = calloc(2, sizeof (Rt_map *))) != NULL) { in is_dep_init() 656 call_array(Addr *array, uint_t arraysz, Rt_map *lmp, Word shtype) in call_array() 699 call_init(Rt_map **tobj, int flag) in call_init() 701 Rt_map **_tobj, **_nobj; in call_init() [all …]
|
H A D | elf.c | 83 static void elf_dladdr(ulong_t, Rt_map *, Dl_info *, void **, int); 85 static int elf_fix_name(const char *, Rt_map *, Alist **, Aliste, uint_t); 89 static int elf_needed(Lm_list *, Aliste, Rt_map *, int *); 132 elf_fix_name(const char *name, Rt_map *clmp, Alist **alpp, Aliste alni, in elf_fix_name() 295 Rt_map *lmp = lml_main.lm_head; in elf_verify() 329 Rt_map *lmp = lml->lm_head; in elf_rtld_load() 360 Rt_map * 361 elf_lazy_load(Rt_map *clmp, Slookup *slp, uint_t ndx, const char *sym, in elf_lazy_load() 365 Rt_map *nlmp; in elf_lazy_load() 375 if (((nlmp = (Rt_map *)dip->di_info) != NULL) || in elf_lazy_load() [all …]
|
H A D | cap.c | 371 cap_check_lmp_init(Rt_map *lmp) in cap_check_lmp_init() 427 cap_check_lmp(Rt_map *lmp, Rej_desc *rej) in cap_check_lmp() 515 cap_dir(Alist **fdalpp, Lm_list *lml, const char *dname, Rt_map *clmp, in cap_dir() 655 Rt_map *flmp, Rt_map *clmp, const char *ref, int mode, uint_t flags, in cap_filtees() 673 Rt_map *nlmp; in cap_filtees() 783 Rt_map * 784 load_cap(Lm_list *lml, Aliste lmco, const char *dir, Rt_map *clmp, in load_cap() 791 Rt_map *lmp = NULL; in load_cap() 1109 sym_cap_check(Cap *cptr, uint_t cndx, Syscapset *bestcapset, Rt_map *lmp, in sym_cap_check() 1325 Rt_map *ilmp = srp->sr_dmap; in cap_match()
|
/titanic_50/usr/src/cmd/sgs/liblddbg/common/ |
H A D | llib-llddbg | 44 void Dbg_audit_ignore(Rt_map *); 46 void Dbg_audit_lib(Rt_map *, const char *, int); 73 void Dbg_tls_static_resv(Rt_map *, ulong_t, ulong_t); 75 void Dbg32_bind_global(Rt_map *, Elf32_Addr, Elf32_Off, Elf32_Word, 76 Pltbindtype, Rt_map *, Elf32_Addr, Elf32_Off, const char *, uint_t); 77 void Dbg64_bind_global(Rt_map *, Elf64_Addr, Elf64_Off, Elf64_Xword, 78 Pltbindtype, Rt_map *, Elf64_Addr, Elf64_Off, const char *, uint_t); 79 void Dbg64_bind_pltpad_to(Rt_map *, Addr, const char *, const char *); 80 void Dbg64_bind_pltpad_from(Rt_map *, Addr, const char *); 81 void Dbg32_bind_reject(Rt_map *, Rt_map *, const char *, int); [all …]
|
H A D | util.c | 36 Dbg_util_call_main(Rt_map *lmp) in Dbg_util_call_main() 46 Dbg_util_call_init(Rt_map *lmp, int flag) in Dbg_util_call_init() 69 Dbg_util_intoolate(Rt_map *lmp) in Dbg_util_intoolate() 127 Dbg_util_call_array(Rt_map *lmp, void *addr, int ndx, Word shtype) in Dbg_util_call_array() 147 Dbg_util_call_fini(Rt_map *lmp) in Dbg_util_call_fini() 189 Dbg_util_scc_entry(Rt_map *lmp, uint_t idx) in Dbg_util_scc_entry() 202 Dbg_util_edge_in(Lm_list *lml, Rt_map *clmp, uint_t flags, Rt_map *dlmp, in Dbg_util_edge_in() 235 Dbg_util_edge_out(Rt_map *clmp, Rt_map *dlmp) in Dbg_util_edge_out() 247 Dbg_util_collect(Rt_map *lmp, int ndx, int flag) in Dbg_util_collect() 285 Dbg_util_lcinterface(Rt_map *lmp, int tag, char *val) in Dbg_util_lcinterface() [all …]
|
H A D | dlfcns.c | 32 Dbg_dl_iphdr_enter(Rt_map *clmp, u_longlong_t cnt_map, u_longlong_t cnt_unmap) in Dbg_dl_iphdr_enter() 79 Dbg_dl_dlopen(Rt_map *clmp, const char *name, int *in_nfavl, int mode) in Dbg_dl_dlopen() 106 Dbg_dl_dlclose(Rt_map *clmp, const char *name, int flag) in Dbg_dl_dlclose() 124 Dbg_dl_dldump(Rt_map *clmp, const char *ipath, const char *opath, int flags) in Dbg_dl_dldump() 139 Dbg_dl_dlerror(Rt_map *clmp, const char *str) in Dbg_dl_dlerror() 152 Dbg_dl_dladdr(Rt_map *clmp, void *addr) in Dbg_dl_dladdr() 164 Dbg_dl_dlsym(Rt_map *clmp, const char *sym, int *in_nfavl, const char *next, in Dbg_dl_dlsym() 210 Dbg_dl_dlinfo(Rt_map *clmp, const char *name, int request, void *addr) in Dbg_dl_dlinfo()
|
H A D | bindings.c | 82 Dbg_bind_global(Rt_map *flmp, Addr fabs, Off foff, Xword pltndx, in Dbg_bind_global() 83 Pltbindtype pbtype, Rt_map *tlmp, Addr tabs, Off toff, in Dbg_bind_global() 167 Dbg_bind_reject(Rt_map *flmp, Rt_map *tlmp, const char *sym, int why) in Dbg_bind_reject() 183 Dbg_bind_weak(Rt_map *flmp, Addr fabs, Addr frel, const char *sym) in Dbg_bind_weak() 202 Dbg_bind_pltpad_to(Rt_map *lmp, Addr pltpad, const char *dfile, in Dbg_bind_pltpad_to() 215 Dbg_bind_pltpad_from(Rt_map *lmp, Addr pltpad, const char *sname) in Dbg_bind_pltpad_from()
|
H A D | files.c | 39 Dbg_file_analyze(Rt_map *lmp) in Dbg_file_analyze() 120 Dbg_file_ldso(Rt_map *lmp, char **envp, auxv_t *auxv, const char *lmid, in Dbg_file_ldso() 140 Dbg_file_prot(Rt_map *lmp, int prot) in Dbg_file_prot() 152 Dbg_file_delete(Rt_map *lmp) in Dbg_file_delete() 223 Dbg_file_hdl_action(Grp_hdl *ghp, Rt_map *lmp, int type, uint_t flags) in Dbg_file_hdl_action() 312 Dbg_file_bindings(Rt_map *lmp, int flag) in Dbg_file_bindings() 317 Rt_map *tlmp; in Dbg_file_bindings() 336 for (tlmp = lmp; tlmp; tlmp = (Rt_map *)NEXT(tlmp)) { in Dbg_file_bindings() 393 Dbg_file_lazyload(Rt_map *clmp, const char *fname, const char *sname) in Dbg_file_lazyload() 416 Dbg_file_needed(Rt_map *lmp, const char *name) in Dbg_file_needed() [all …]
|
/titanic_50/usr/src/cmd/sgs/include/ |
H A D | debug.h | 770 extern void Dbg_audit_ignore(Rt_map *); 772 extern void Dbg_audit_lib(Rt_map *, const char *, int); 798 extern void Dbg_bind_global(Rt_map *, Addr, Off, Xword, Pltbindtype, 799 Rt_map *, Addr, Off, const char *, uint_t); 803 extern void Dbg_bind_pltpad_from(Rt_map *, Addr, const char *); 804 extern void Dbg_bind_pltpad_to(Rt_map *, Addr, const char *, const char *); 806 extern void Dbg_bind_reject(Rt_map *, Rt_map *, const char *, int); 807 extern void Dbg_bind_weak(Rt_map *, Addr, Addr, const char *); 810 extern void Dbg_cap_filter(Lm_list *, const char *, Rt_map *); 820 extern void Dbg_dl_dladdr(Rt_map *, void *); [all …]
|
H A D | rtld.h | 60 typedef struct rt_map Rt_map; typedef 91 Rt_map *b_caller; /* caller (originator) of a binding */ 92 Rt_map *b_depend; /* dependency (destination) of a */ 179 Rt_map *lc_lmp; /* function provider */ 270 Rt_map *lc_head; 271 Rt_map *lc_tail; 285 Rt_map *lm_head; /* linked list pointers to active */ 286 Rt_map *lm_tail; /* link-map list */ 530 Rt_map *gh_ownlmp; /* handle owners link-map */ 564 Rt_map *gd_depend; /* dependency */ [all …]
|
/titanic_50/usr/src/cmd/sgs/librtld/common/ |
H A D | _librtld.h | 87 extern void apply_reloc(void *, Reloc *, const char *, uchar_t *, Rt_map *); 89 extern int count_reloc(Cache *, Cache *, Rt_map *, int, Addr, Xword *, 94 extern int update_dynamic(Cache *, Cache *, Rt_map *, int, Addr, Off, 97 Rt_map *, Rel **, Rel **, Rel **);
|
/titanic_50/usr/src/cmd/sgs/rtld/i386/ |
H A D | i386_elf.c | 52 extern void elf_rtbndr(Rt_map *, ulong_t, caddr_t); 69 ldso_plt_init(Rt_map *lmp) in ldso_plt_init() 105 elf_plt_trace_write(uint_t roffset, Rt_map *rlmp, Rt_map *dlmp, Sym *sym, in elf_plt_trace_write() 193 elf_bndr(Rt_map *lmp, ulong_t reloff, caddr_t from) in elf_bndr() 195 Rt_map *nlmp, *llmp; in elf_bndr() 360 elf_reloc(Rt_map *lmp, uint_t plt, int *in_nfavl, APlist **textrel) in elf_reloc() 370 Rt_map *_lmp, *plmp; in elf_reloc() 901 Rt_map *lmp = (Rt_map *)l; in elf_plt_init() 918 _elf_copy_reloc(const char *name, Rt_map *rlmp, Rt_map *dlmp) in _elf_copy_reloc() 922 Rt_map *_lmp; in _elf_copy_reloc() [all …]
|
/titanic_50/usr/src/cmd/sgs/rtld/mdbmod/common/ |
H A D | rtld.msg | 415 @ MSG_RTMAPS_DCD "Display list of Rt_map structures" 420 Walk a list of Rt_map's starting with a specified Rt_map entry. If no\n\ 421 address is specified, the dynlm_list master Rt_map list is searched and\n\ 424 The -v option expands each Rt_map in detail. See Rt_map.\n\ 434 Example 2 - all Rt_map entries:\n\n\ 454 # Rt_map messages. 457 @ MSG_RTMAP_STR "Rt_map" 459 @ MSG_RTMAP_DCD "Display Rt_map structure" 461 @ MSG_RTMAP_TITLE "Rt_map located at: 0x%0?p\n" 480 Display the contents of selected fields of an Rt_map structure.\n\ [all …]
|
/titanic_50/usr/src/cmd/sgs/rtld/amd64/ |
H A D | amd64_elf.c | 49 extern void elf_rtbndr(Rt_map *, ulong_t, caddr_t); 66 ldso_plt_init(Rt_map *lmp) in ldso_plt_init() 125 elf_plt_trace_write(ulong_t roffset, Rt_map *rlmp, Rt_map *dlmp, Sym *sym, in elf_plt_trace_write() 212 elf_bndr(Rt_map *lmp, ulong_t pltndx, caddr_t from) in elf_bndr() 214 Rt_map *nlmp, *llmp; in elf_bndr() 381 elf_reloc(Rt_map *lmp, uint_t plt, int *in_nfavl, APlist **textrel) in elf_reloc() 392 Rt_map *_lmp, *plmp; in elf_reloc() 927 Rt_map *lmp = (Rt_map *)l; in elf_plt_init()
|