/titanic_44/usr/src/cmd/sgs/libld/common/ |
H A D | _libld.h | 202 void (* mr_mach_eflags)(Ehdr *, Ofl_desc *); 203 void (* mr_mach_make_dynamic)(Ofl_desc *, size_t *); 204 void (* mr_mach_update_odynamic)(Ofl_desc *, Dyn **); 205 Xword (* mr_calc_plt_addr)(Sym_desc *, Ofl_desc *); 206 uintptr_t (* mr_perform_outreloc)(Rel_desc *, Ofl_desc *, 208 uintptr_t (* mr_do_activerelocs)(Ofl_desc *); 209 uintptr_t (* mr_add_outrel)(Word, Rel_desc *, Ofl_desc *); 211 Ofl_desc *); 212 uintptr_t (* mr_reloc_local)(Rel_desc *, Ofl_desc *); 213 uintptr_t (* mr_reloc_GOTOP)(Boolean, Rel_desc *, Ofl_desc *); [all …]
|
H A D | llib-lld | 34 uintptr_t ld32_create_outfile(Ofl_desc *); 35 uintptr_t ld64_create_outfile(Ofl_desc *); 37 uintptr_t ld32_ent_setup(Ofl_desc *, Xword); 38 uintptr_t ld64_ent_setup(Ofl_desc *, Xword); 40 uintptr_t ld32_init_strings(Ofl_desc *); 41 uintptr_t ld64_init_strings(Ofl_desc *); 47 uintptr_t ld32_make_sections(Ofl_desc *); 48 uintptr_t ld64_make_sections(Ofl_desc *); 50 void ld32_ofl_cleanup(Ofl_desc *); 51 void ld64_ofl_cleanup(Ofl_desc *); [all …]
|
H A D | machsym.sparc.h | 56 extern const char *ld_is_regsym_sparc(Ofl_desc *, Ifl_desc *, Sym *, 59 Ifl_desc *, Ofl_desc *); 61 Ifl_desc *, Ofl_desc *); 62 extern int ld_reg_enter_sparc(Sym_desc *, Ofl_desc *); 63 extern Sym_desc * ld_reg_find_sparc(Sym *, Ofl_desc *);
|
H A D | support.c | 65 ld_sup_loadso(Ofl_desc *ofl, const char *obj) in ld_sup_loadso() 143 ld_sup_start(Ofl_desc *ofl, const Half etype, const char *caller) in ld_sup_start() 156 ld_sup_atexit(Ofl_desc *ofl, int ecode) in ld_sup_atexit() 169 ld_sup_open(Ofl_desc *ofl, const char **opath, const char **ofile, int *ofd, in ld_sup_open() 231 ld_sup_file(Ofl_desc *ofl, const char *ifile, const Elf_Kind ekind, int flags, in ld_sup_file() 254 ld_sup_input_section(Ofl_desc *ofl, Ifl_desc *ifl, const char *sname, in ld_sup_input_section() 302 ld_sup_section(Ofl_desc *ofl, const char *scn, Shdr *shdr, Word ndx, in ld_sup_section() 316 ld_sup_input_done(Ofl_desc *ofl) in ld_sup_input_done()
|
H A D | machsym.sparc.c | 59 Ofl_desc *ofl) in ld_reg_check_sparc() 127 Ofl_desc *ofl) in ld_mach_sym_typecheck_sparc() 161 ld_is_regsym_sparc(Ofl_desc *ofl, Ifl_desc *ifl, Sym *sym, const char *strs, in ld_is_regsym_sparc() 224 ld_reg_find_sparc(Sym *sym, Ofl_desc *ofl) in ld_reg_find_sparc() 233 ld_reg_enter_sparc(Sym_desc *sdp, Ofl_desc *ofl) in ld_reg_enter_sparc()
|
H A D | sections.c | 44 remove_local(Ofl_desc *ofl, Sym_desc *sdp, int allow_ldynsym) in remove_local() 70 remove_scoped(Ofl_desc *ofl, Sym_desc *sdp, int allow_ldynsym) in remove_scoped() 95 ignore_sym(Ofl_desc *ofl, Ifl_desc *ifl, Sym_desc *sdp, int allow_ldynsym) in ignore_sym() 204 adjust_os_count(Ofl_desc *ofl) in adjust_os_count() 271 ignore_section_processing(Ofl_desc *ofl) in ignore_section_processing() 426 new_section(Ofl_desc *ofl, Word shtype, const char *shname, Xword entcnt, in new_section() 691 new_section_from_template(Ofl_desc *ofl, Is_desc *tmpl_isp, size_t size, in new_section_from_template() 743 ld_make_bss(Ofl_desc *ofl, Xword size, Xword align, uint_t ident) in ld_make_bss() 819 make_array(Ofl_desc *ofl, Word shtype, const char *sectname, APlist *alp) in make_array() 905 make_comment(Ofl_desc *ofl) in make_comment() [all …]
|
H A D | exit.c | 43 ld_exit(Ofl_desc *ofl) in ld_exit() 85 static Ofl_desc *Ofl = NULL; 136 ld_init_sighandler(Ofl_desc *ofl) in ld_init_sighandler()
|
H A D | ldlibs.c | 62 compat_YL_YU(Ofl_desc *ofl, char *path, int index) in compat_YL_YU() 91 process_lib_path(Ofl_desc *ofl, APlist **apl, char *path, Boolean subsflag) in process_lib_path() 158 ld_add_libdir(Ofl_desc *ofl, const char *path) in ld_add_libdir() 178 find_lib_name(const char *dir, const char *file, Ofl_desc *ofl, Rej_desc *rej, in find_lib_name() 284 ld_find_library(const char *name, Ofl_desc *ofl) in ld_find_library() 371 ld_lib_setup(Ofl_desc *ofl) in ld_lib_setup()
|
H A D | files.c | 53 ifl_verify(Ehdr *ehdr, Ofl_desc *ofl, Rej_desc *rej) in ifl_verify() 84 ifl_setup(const char *name, Ehdr *ehdr, Elf *elf, Word flags, Ofl_desc *ofl, in ifl_setup() 164 Word ndx, int ident, Ofl_desc *ofl) in process_section() 238 sf1_cap(Ofl_desc *ofl, Xword val, Ifl_desc *ifl, Is_desc *cisp) in sf1_cap() 371 hw_cap(Ofl_desc *ofl, Xword tag, Xword val) in hw_cap() 419 str_cap(Ofl_desc *ofl, char *pstr, ofl_flag_t flags, Xword tag, Caplist *list) in str_cap() 470 id_cap(Ofl_desc *ofl, char *pstr, oc_flag_t flags) in id_cap() 505 ld_cap_move_symtoobj(Ofl_desc *ofl) in ld_cap_move_symtoobj() 554 get_cap_group(Objcapset *ocapset, Word cnum, Ofl_desc *ofl, Is_desc *isp) in get_cap_group() 695 ld_cap_add_family(Ofl_desc *ofl, Sym_desc *lsdp, Sym_desc *csdp, Cap_group *cgp, in ld_cap_add_family() [all …]
|
H A D | order.c | 169 validate_shf_ordered_dest(Ofl_desc *ofl, Ifl_desc *ifl, Word ndx, in validate_shf_ordered_dest() 271 place_unordered(Ofl_desc *ofl, Is_desc *isp, Place_path_info *path_info) in place_unordered() 292 ld_process_ordered(Ofl_desc *ofl, Ifl_desc *ifl, Place_path_info *path_info, in ld_process_ordered() 389 ld_sec_validate(Ofl_desc *ofl) in ld_sec_validate() 463 ld_sort_ordered(Ofl_desc *ofl) in ld_sort_ordered()
|
H A D | machrel.sparc.c | 54 ld_find_got_ndx(Alist *alp, Gotref gref, Ofl_desc *ofl, Rel_desc *rdesc) in ld_find_got_ndx() 73 ld_calc_got_offset(Rel_desc * rdesc, Ofl_desc * ofl) in ld_calc_got_offset() 120 ld_mach_eflags(Ehdr *ehdr, Ofl_desc *ofl) in ld_mach_eflags() 172 ld_mach_make_dynamic(Ofl_desc *ofl, size_t *cnt) in ld_mach_make_dynamic() 184 ld_mach_update_odynamic(Ofl_desc *ofl, Dyn **dyn) in ld_mach_update_odynamic() 199 ld_calc_plt_addr(Sym_desc *sdp, Ofl_desc *ofl) in ld_calc_plt_addr() 278 plt_far_entry(Ofl_desc *ofl, Xword pltndx, Xword *roffset, Sxword *raddend) in plt_far_entry() 394 plt_entry(Ofl_desc *ofl, Xword pltndx, Xword *roffset, Sxword *raddend) in plt_entry() 504 ld_calc_plt_addr(Sym_desc *sdp, Ofl_desc *ofl) in ld_calc_plt_addr() 527 plt_entry(Ofl_desc * ofl, Xword pltndx, Xword *roffset, Sxword *raddend) in plt_entry() [all …]
|
H A D | libs.c | 65 process_member(Ar_mem *amp, const char *name, Sym_desc *sdp, Ofl_desc *ofl) in process_member() 187 ld_ar_setup(const char *name, Elf *elf, Ofl_desc *ofl) in ld_ar_setup() 321 ar_member_name(const char *name, Elf *arelf, Ofl_desc *ofl) in ar_member_name() 343 ar_member_path(const char *name, const char *arname, Ofl_desc *ofl) in ar_member_path() 378 ar_input(int fd, Ar_desc *adp, Ofl_desc *ofl, Elf *arelf, in ar_input() 454 Ofl_desc *ofl, Boolean *found, Rej_desc *rej) in ar_extract_bysym() 730 ar_extract_all(const char *name, int fd, Ar_desc *adp, Ofl_desc *ofl, in ar_extract_all() 828 ld_process_archive(const char *name, int fd, Ar_desc *adp, Ofl_desc *ofl) in ld_process_archive()
|
H A D | relocate.c | 91 is_disp_copied(Ofl_desc *ofl, Copy_rel *crp) in is_disp_copied() 234 Ofl_desc *ofl) in disp_scansyms() 336 ld_disp_errmsg(const char *msg, Rel_desc *rsp, Ofl_desc *ofl) in ld_disp_errmsg() 378 disp_inspect(Ofl_desc *ofl, Rel_desc *rld, Boolean rlocal) in disp_inspect() 475 ld_add_rel_cache(Ofl_desc *ofl, Rel_cache *rcp) in ld_add_rel_cache() 549 ld_add_rel_aux(Ofl_desc *ofl, Rel_desc *rdesc) in ld_add_rel_aux() 604 ld_reloc_enter(Ofl_desc *ofl, Rel_cache *rcp, Rel_desc *rdesc, Word flags) in ld_reloc_enter() 734 ld_reloc_set_aux_osdesc(Ofl_desc *ofl, Rel_desc *rdesc, Os_desc *osp) in ld_reloc_set_aux_osdesc() 742 ld_reloc_set_aux_usym(Ofl_desc *ofl, Rel_desc *rdesc, Sym_desc *sdp) in ld_reloc_set_aux_usym() 795 ld_add_actrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl) in ld_add_actrel() [all …]
|
H A D | machrel.amd.c | 74 ld_find_got_ndx(Alist *alp, Gotref gref, Ofl_desc *ofl, Rel_desc *rdesc) in ld_find_got_ndx() 94 ld_calc_got_offset(Rel_desc *rdesc, Ofl_desc *ofl) in ld_calc_got_offset() 140 ld_mach_eflags(Ehdr *ehdr, Ofl_desc *ofl) in ld_mach_eflags() 146 ld_mach_make_dynamic(Ofl_desc *ofl, size_t *cnt) in ld_mach_make_dynamic() 158 ld_mach_update_odynamic(Ofl_desc *ofl, Dyn **dyn) in ld_mach_update_odynamic() 171 ld_calc_plt_addr(Sym_desc *sdp, Ofl_desc *ofl) in ld_calc_plt_addr() 194 plt_entry(Ofl_desc * ofl, Sym_desc * sdp) in plt_entry() 281 ld_perform_outreloc(Rel_desc * orsp, Ofl_desc * ofl, Boolean *remain_seen) in ld_perform_outreloc() 536 tls_fixups(Ofl_desc *ofl, Rel_desc *arsp) in tls_fixups() 751 ld_do_activerelocs(Ofl_desc *ofl) in ld_do_activerelocs() [all …]
|
H A D | machrel.intel.c | 47 ld_find_got_ndx(Alist *alp, Gotref gref, Ofl_desc *ofl, Rel_desc *rdesc) in ld_find_got_ndx() 63 ld_calc_got_offset(Rel_desc *rdesc, Ofl_desc *ofl) in ld_calc_got_offset() 107 ld_mach_eflags(Ehdr *ehdr, Ofl_desc *ofl) in ld_mach_eflags() 113 ld_mach_make_dynamic(Ofl_desc *ofl, size_t *cnt) in ld_mach_make_dynamic() 125 ld_mach_update_odynamic(Ofl_desc *ofl, Dyn **dyn) in ld_mach_update_odynamic() 138 ld_calc_plt_addr(Sym_desc *sdp, Ofl_desc *ofl) in ld_calc_plt_addr() 163 plt_entry(Ofl_desc * ofl, Word rel_off, Sym_desc * sdp) in plt_entry() 225 ld_perform_outreloc(Rel_desc * orsp, Ofl_desc * ofl, Boolean *remain_seen) in ld_perform_outreloc() 441 tls_fixups(Ofl_desc *ofl, Rel_desc *arsp) in tls_fixups() 723 ld_do_activerelocs(Ofl_desc *ofl) in ld_do_activerelocs() [all …]
|
H A D | version.c | 88 vers_visit_children(Ofl_desc *ofl, Ver_desc *vp, int flag) in vers_visit_children() 171 ld_vers_check_defs(Ofl_desc *ofl) in ld_vers_check_defs() 337 ld_vers_check_need(Ofl_desc *ofl) in ld_vers_check_need() 463 vers_select(Ofl_desc *ofl, Ifl_desc *ifl, Ver_desc *vdp, const char *ref) in vers_select() 477 vers_index(Ofl_desc *ofl, Ifl_desc *ifl, int avail) in vers_index() 563 ld_vers_sym_process(Ofl_desc *ofl, Is_desc *isp, Ifl_desc *ifl) in ld_vers_sym_process() 596 ld_vers_def_process(Is_desc *isp, Ifl_desc *ifl, Ofl_desc *ofl) in ld_vers_def_process() 818 ld_vers_need_process(Is_desc *isp, Ifl_desc *ifl, Ofl_desc *ofl) in ld_vers_need_process() 894 ld_vers_promote(Sym_desc *sdp, Word ndx, Ifl_desc *ifl, Ofl_desc *ofl) in ld_vers_promote() 953 ld_vers_base(Ofl_desc *ofl) in ld_vers_base() [all …]
|
H A D | resolve.c | 55 sym_null(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl, in sym_null() 62 Ifl_desc *ifl, Ofl_desc *ofl) in sym_visibility_diag() 120 sym_visibility(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl) in sym_visibility() 268 sym_typecheck(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl, in sym_typecheck() 300 sym_mach_check(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl, in sym_mach_check() 316 sym_promote(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl, in sym_promote() 358 sym_override(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl, in sym_override() 520 sym_twoundefs(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl, in sym_twoundefs() 550 sym_tworeals(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl, in sym_tworeals() 652 sym_realtent(Sym_desc *sdp, Sym *nsym, Ifl_desc *ifl, Ofl_desc *ofl, in sym_realtent() [all …]
|
H A D | ldmain.c | 79 ld_eprintf(Ofl_desc *ofl, Error error, const char *format, ...) in ld_eprintf() 148 Ofl_desc *ofl; in ld_main() 159 if ((ofl = libld_calloc(1, sizeof (Ofl_desc))) == 0) in ld_main() 519 ld_ofl_cleanup(Ofl_desc *ofl) in ld_ofl_cleanup()
|
/titanic_44/usr/src/cmd/sgs/liblddbg/common/ |
H A D | llib-llddbg | 193 void Dbg32_file_output(Ofl_desc *); 194 void Dbg64_file_output64(Ofl_desc *); 206 void Dbg32_got_display(Ofl_desc *, Elf32_Off, int, 208 void Dbg64_got_display(Ofl_desc *, Elf64_Off, int, 242 void Dbg32_map_ent(Lm_list *, Ent_desc *, Ofl_desc *, Lineno); 243 void Dbg64_map_ent(Lm_list *, Ent_desc *, Ofl_desc *, Lineno); 258 void Dbg32_map_seg(Ofl_desc *, uint_t, int, Sg_desc *, Lineno); 259 void Dbg64_map_seg(Ofl_desc *, uint_t, int, Sg_desc *, Lineno); 262 void Dbg32_map_size_old(Ofl_desc *, Sym_desc *, const char *, Lineno); 263 void Dbg64_map_size_old(Ofl_desc *, Sym_desc *, const char *, Lineno); [all …]
|
H A D | syms.c | 232 Dbg_syms_entered(Ofl_desc *ofl, Sym *sym, Sym_desc *sdp) in Dbg_syms_entered() 283 Dbg_syms_cap_convert(Ofl_desc *ofl, Word ndx, const char *name, Sym *sym) in Dbg_syms_cap_convert() 301 Dbg_syms_cap_local(Ofl_desc *ofl, Word ndx, const char *name, Sym *sym, in Dbg_syms_cap_local() 370 Dbg_syms_ignore(Ofl_desc *ofl, Sym_desc *sdp) in Dbg_syms_ignore() 383 Dbg_syms_old(Ofl_desc *ofl, Sym_desc *sdp) in Dbg_syms_old() 397 Dbg_syms_new(Ofl_desc *ofl, Sym *sym, Sym_desc *sdp) in Dbg_syms_new() 413 Dbg_syms_updated(Ofl_desc *ofl, Sym_desc *sdp, const char *name) in Dbg_syms_updated() 442 Dbg_syms_resolving(Ofl_desc *ofl, Word ndx, const char *name, int row, in Dbg_syms_resolving() 467 Dbg_syms_resolved(Ofl_desc *ofl, Sym_desc *sdp) in Dbg_syms_resolved() 484 Dbg_syms_copy_reloc(Ofl_desc *ofl, Sym_desc *sdp, Word align) in Dbg_syms_copy_reloc() [all …]
|
H A D | statistics.c | 64 rel_cache_statistics(Ofl_desc *ofl, const char *title, APlist *alp) in rel_cache_statistics() 95 rel_aux_cache_statistics(Ofl_desc *ofl) in rel_aux_cache_statistics() 120 Dbg_statistics_ld(Ofl_desc *ofl) in Dbg_statistics_ld() 161 Dbg_statistics_ar(Ofl_desc *ofl) in Dbg_statistics_ar()
|
H A D | map.c | 101 Dbg_map_size_old(Ofl_desc *ofl, Sym_desc *sdp, const char *segname, in Dbg_map_size_old() 124 Dbg_map_symbol(Ofl_desc *ofl, Sym_desc *sdp) in Dbg_map_symbol() 237 Dbg_map_ent(Lm_list *lml, Ent_desc *enp, Ofl_desc *ofl, Lineno lineno) in Dbg_map_ent() 270 Dbg_map_seg(Ofl_desc *ofl, dbg_state_t dbg_state, int ndx, Sg_desc *sgp, in Dbg_map_seg() 287 Dbg_map_seg_order(Ofl_desc *ofl, uchar_t osabi, Half mach, in Dbg_map_seg_order()
|
/titanic_44/usr/src/cmd/sgs/include/ |
H A D | debug.h | 872 extern void Dbg_file_output(Ofl_desc *); 879 extern void Dbg_got_display(Ofl_desc *, Off, int, Word, size_t); 898 extern void Dbg_map_ent(Lm_list *, Ent_desc *, Ofl_desc *, Lineno); 905 extern void Dbg_map_seg(Ofl_desc *, dbg_state_t, int, Sg_desc *, Lineno); 906 extern void Dbg_map_seg_order(Ofl_desc *, uchar_t, Half, dbg_state_t, 911 extern void Dbg_map_size_old(Ofl_desc *, Sym_desc *, const char *, Lineno); 914 extern void Dbg_map_symbol(Ofl_desc *, Sym_desc *); 946 extern void Dbg_reloc_out(Ofl_desc *, int, Word, void *, const char *, 964 extern void Dbg_sec_order_list(Ofl_desc *, int); 971 extern void Dbg_seg_entry(Ofl_desc *, int, Sg_desc *); [all …]
|
H A D | libld.h | 1552 extern uintptr_t ld_create_outfile(Ofl_desc *); 1553 extern uintptr_t ld_ent_setup(Ofl_desc *, Xword); 1554 extern uintptr_t ld_init_strings(Ofl_desc *); 1556 extern uintptr_t ld_make_sections(Ofl_desc *); 1557 extern void ld_ofl_cleanup(Ofl_desc *); 1559 size_t, Ofl_desc *, Rej_desc *); 1560 extern uintptr_t ld_reloc_init(Ofl_desc *); 1561 extern uintptr_t ld_reloc_process(Ofl_desc *); 1562 extern uintptr_t ld_sym_validate(Ofl_desc *); 1563 extern uintptr_t ld_update_outfile(Ofl_desc *);
|
/titanic_44/usr/src/cmd/sgs/rtld/common/ |
H A D | object.c | 58 Ofl_desc *ofl; in elf_obj_init() 73 if ((ofl = calloc(sizeof (Ofl_desc), 1)) == NULL) in elf_obj_init() 190 (Ofl_desc *)ELFPRV(olmp), &rej) == (Ifl_desc *)S_ERROR) { in elf_obj_file() 235 Ofl_desc *ofl = (Ofl_desc *)ELFPRV(lmp); in elf_obj_fini()
|