Home
last modified time | relevance | path

Searched refs:Ofl_desc (Results 1 – 25 of 46) sorted by relevance

12

/illumos-gate/usr/src/cmd/sgs/libld/common/
H A D_libld.h203 void (* mr_mach_eflags)(Ehdr *, Ofl_desc *);
204 void (* mr_mach_make_dynamic)(Ofl_desc *, size_t *);
205 void (* mr_mach_update_odynamic)(Ofl_desc *, Dyn **);
206 Xword (* mr_calc_plt_addr)(Sym_desc *, Ofl_desc *);
207 uintptr_t (* mr_perform_outreloc)(Rel_desc *, Ofl_desc *,
209 uintptr_t (* mr_do_activerelocs)(Ofl_desc *);
210 uintptr_t (* mr_add_outrel)(Word, Rel_desc *, Ofl_desc *);
212 Ofl_desc *);
213 uintptr_t (* mr_reloc_local)(Rel_desc *, Ofl_desc *);
214 uintptr_t (* mr_reloc_GOTOP)(Boolean, Rel_desc *, Ofl_desc *);
[all …]
H A Dmachsym.sparc.h56 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 Dsupport.c65 ld_sup_loadso(Ofl_desc *ofl, const char *obj) in ld_sup_loadso()
142 ld_sup_start(Ofl_desc *ofl, const Half etype, const char *caller) in ld_sup_start()
155 ld_sup_atexit(Ofl_desc *ofl, int ecode) in ld_sup_atexit()
168 ld_sup_open(Ofl_desc *ofl, const char **opath, const char **ofile, int *ofd, in ld_sup_open()
230 ld_sup_file(Ofl_desc *ofl, const char *ifile, const Elf_Kind ekind, int flags, in ld_sup_file()
253 ld_sup_input_section(Ofl_desc *ofl, Ifl_desc *ifl, const char *sname, in ld_sup_input_section()
301 ld_sup_section(Ofl_desc *ofl, const char *scn, Shdr *shdr, Word ndx, in ld_sup_section()
315 ld_sup_input_done(Ofl_desc *ofl) in ld_sup_input_done()
H A Dsections.c47 remove_local(Ofl_desc *ofl, Sym_desc *sdp, int allow_ldynsym) in remove_local()
73 remove_scoped(Ofl_desc *ofl, Sym_desc *sdp, int allow_ldynsym) in remove_scoped()
98 ignore_sym(Ofl_desc *ofl, Ifl_desc *ifl, Sym_desc *sdp, int allow_ldynsym) in ignore_sym()
207 adjust_os_count(Ofl_desc *ofl) in adjust_os_count()
274 ignore_section_processing(Ofl_desc *ofl) in ignore_section_processing()
429 new_section(Ofl_desc *ofl, Word shtype, const char *shname, Xword entcnt, in new_section()
694 new_section_from_template(Ofl_desc *ofl, Is_desc *tmpl_isp, size_t size, in new_section_from_template()
746 ld_make_bss(Ofl_desc *ofl, Xword size, Xword align, uint_t ident) in ld_make_bss()
822 make_array(Ofl_desc *ofl, Word shtype, const char *sectname, APlist *alp) in make_array()
908 make_comment(Ofl_desc *ofl) in make_comment()
[all …]
H A Dmachsym.sparc.c59 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 Dldlibs.c62 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 Dmachrel.sparc.c54 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 Dexit.c43 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 Dorder.c169 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 Dfiles.c54 ifl_verify(Ehdr *ehdr, Ofl_desc *ofl, Rej_desc *rej) in ifl_verify()
85 ifl_setup(const char *name, Ehdr *ehdr, Elf *elf, Word flags, Ofl_desc *ofl, in ifl_setup()
166 section_is_exclude(Ofl_desc *ofl, Shdr *shdr) in section_is_exclude()
183 Word ndx, int ident, Ofl_desc *ofl) in process_section()
255 sf1_cap(Ofl_desc *ofl, Xword val, Ifl_desc *ifl, Is_desc *cisp) in sf1_cap()
388 hw_cap(Ofl_desc *ofl, Xword tag, Xword val) in hw_cap()
445 str_cap(Ofl_desc *ofl, char *pstr, ofl_flag_t flags, Xword tag, Caplist *list) in str_cap()
496 id_cap(Ofl_desc *ofl, char *pstr, oc_flag_t flags) in id_cap()
531 ld_cap_move_symtoobj(Ofl_desc *ofl) in ld_cap_move_symtoobj()
583 get_cap_group(Objcapset *ocapset, Word cnum, Ofl_desc *ofl, Is_desc *isp) in get_cap_group()
[all …]
H A Drelocate.c91 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 Dlibs.c65 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()
322 ar_member_name(const char *name, Elf *arelf, Ofl_desc *ofl) in ar_member_name()
344 ar_member_path(const char *name, const char *arname, Ofl_desc *ofl) in ar_member_path()
379 ar_input(int fd, Ar_desc *adp, Ofl_desc *ofl, Elf *arelf, in ar_input()
455 Ofl_desc *ofl, Boolean *found, Rej_desc *rej) in ar_extract_bysym()
731 ar_extract_all(const char *name, int fd, Ar_desc *adp, Ofl_desc *ofl, in ar_extract_all()
826 ld_process_archive(const char *name, int fd, Ar_desc *adp, Ofl_desc *ofl) in ld_process_archive()
H A Dmachrel.amd.c74 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()
551 tls_fixups(Ofl_desc *ofl, Rel_desc *arsp) in tls_fixups()
765 ld_do_activerelocs(Ofl_desc *ofl) in ld_do_activerelocs()
[all …]
H A Dmachrel.intel.c47 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()
467 tls_fixups(Ofl_desc *ofl, Rel_desc *arsp) in tls_fixups()
752 ld_do_activerelocs(Ofl_desc *ofl) in ld_do_activerelocs()
[all …]
H A Dversion.c88 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 Dresolve.c55 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 Dldmain.c81 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))) == NULL) in ld_main()
529 ld_ofl_cleanup(Ofl_desc *ofl) in ld_ofl_cleanup()
H A Dgroups.c42 gpavl_loaded(Ofl_desc *ofl, Group_desc *gdp) in gpavl_loaded()
88 ld_get_group(Ofl_desc *ofl, Is_desc *isp) in ld_get_group()
163 ld_group_process(Is_desc *gisc, Ofl_desc *ofl) in ld_group_process()
H A Dargs.c138 static uintptr_t process_files_com(Ofl_desc *, int, char **);
139 static uintptr_t process_flags_com(Ofl_desc *, int, char **, int *);
254 ld_rescan_archives(Ofl_desc *ofl, int isgrp, int end_arg_ndx) in ld_rescan_archives()
306 check_flags(Ofl_desc * ofl, int argc) in check_flags()
745 createargv(Ofl_desc *ofl, int *usage) in createargv()
876 guidance_parse(Ofl_desc *ofl, char *optarg) in guidance_parse()
967 assdeflib_parse(Ofl_desc *ofl, char *optarg) in assdeflib_parse()
1005 parseopt_pass1(Ofl_desc *ofl, int argc, char **argv, int *usage) in parseopt_pass1()
1821 parseopt_pass2(Ofl_desc *ofl, int argc, char **argv) in parseopt_pass2()
2030 process_flags_com(Ofl_desc *ofl, int argc, char **argv, int *usage) in process_flags_com()
[all …]
/illumos-gate/usr/src/cmd/sgs/include/
H A Ddebug.h869 extern void Dbg_file_output(Ofl_desc *);
876 extern void Dbg_got_display(Ofl_desc *, Off, int, Word, size_t);
895 extern void Dbg_map_ent(Lm_list *, Ent_desc *, Ofl_desc *, Lineno);
902 extern void Dbg_map_seg(Ofl_desc *, dbg_state_t, int, Sg_desc *, Lineno);
903 extern void Dbg_map_seg_order(Ofl_desc *, uchar_t, Half, dbg_state_t,
908 extern void Dbg_map_size_old(Ofl_desc *, Sym_desc *, const char *, Lineno);
911 extern void Dbg_map_symbol(Ofl_desc *, Sym_desc *);
943 extern void Dbg_reloc_out(Ofl_desc *, int, Word, void *, const char *,
961 extern void Dbg_sec_order_list(Ofl_desc *, int);
968 extern void Dbg_seg_entry(Ofl_desc *, int, Sg_desc *);
[all …]
H A Dlibld.h1600 extern uintptr_t ld_create_outfile(Ofl_desc *);
1601 extern uintptr_t ld_ent_setup(Ofl_desc *, Xword);
1602 extern uintptr_t ld_init_strings(Ofl_desc *);
1604 extern uintptr_t ld_make_sections(Ofl_desc *);
1605 extern void ld_ofl_cleanup(Ofl_desc *);
1607 size_t, Ofl_desc *, Rej_desc *);
1608 extern uintptr_t ld_reloc_init(Ofl_desc *);
1609 extern uintptr_t ld_reloc_process(Ofl_desc *);
1610 extern uintptr_t ld_sym_validate(Ofl_desc *);
1611 extern uintptr_t ld_update_outfile(Ofl_desc *);
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dsyms.c225 Dbg_syms_entered(Ofl_desc *ofl, Sym *sym, Sym_desc *sdp) in Dbg_syms_entered()
276 Dbg_syms_cap_convert(Ofl_desc *ofl, Word ndx, const char *name, Sym *sym) in Dbg_syms_cap_convert()
294 Dbg_syms_cap_local(Ofl_desc *ofl, Word ndx, const char *name, Sym *sym, in Dbg_syms_cap_local()
363 Dbg_syms_ignore(Ofl_desc *ofl, Sym_desc *sdp) in Dbg_syms_ignore()
376 Dbg_syms_old(Ofl_desc *ofl, Sym_desc *sdp) in Dbg_syms_old()
390 Dbg_syms_new(Ofl_desc *ofl, Sym *sym, Sym_desc *sdp) in Dbg_syms_new()
406 Dbg_syms_updated(Ofl_desc *ofl, Sym_desc *sdp, const char *name) in Dbg_syms_updated()
435 Dbg_syms_resolving(Ofl_desc *ofl, Word ndx, const char *name, int row, in Dbg_syms_resolving()
460 Dbg_syms_resolved(Ofl_desc *ofl, Sym_desc *sdp) in Dbg_syms_resolved()
477 Dbg_syms_copy_reloc(Ofl_desc *ofl, Sym_desc *sdp, Word align) in Dbg_syms_copy_reloc()
[all …]
H A Dstatistics.c64 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 Dmap.c101 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()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dobject.c58 Ofl_desc *ofl; in elf_obj_init()
72 if ((ofl = calloc(1, sizeof (Ofl_desc))) == NULL) in elf_obj_init()
188 (Ofl_desc *)ELFPRV(olmp), &rej) == (Ifl_desc *)S_ERROR) { in elf_obj_file()
233 Ofl_desc *ofl = (Ofl_desc *)ELFPRV(lmp); in elf_obj_fini()

12