/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | relocate.c | 47 #define IS_PLT(X) RELTAB_IS_PLT(X, ld_targ.t_mr.mr_reloc_table) 49 RELTAB_IS_GOT_RELATIVE(X, ld_targ.t_mr.mr_reloc_table) 50 #define IS_GOT_PC(X) RELTAB_IS_GOT_PC(X, ld_targ.t_mr.mr_reloc_table) 51 #define IS_GOTPCREL(X) RELTAB_IS_GOTPCREL(X, ld_targ.t_mr.mr_reloc_table) 52 #define IS_GOT_BASED(X) RELTAB_IS_GOT_BASED(X, ld_targ.t_mr.mr_reloc_table) 53 #define IS_GOT_OPINS(X) RELTAB_IS_GOT_OPINS(X, ld_targ.t_mr.mr_reloc_table) 55 RELTAB_IS_GOT_REQUIRED(X, ld_targ.t_mr.mr_reloc_table) 56 #define IS_PC_RELATIVE(X) RELTAB_IS_PC_RELATIVE(X, ld_targ.t_mr.mr_reloc_table) 58 RELTAB_IS_ADD_RELATIVE(X, ld_targ.t_mr.mr_reloc_table) 59 #define IS_REGISTER(X) RELTAB_IS_REGISTER(X, ld_targ [all...] |
H A D | entry.c | 406 psegs->psg_data.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; 407 psegs->psg_bss.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; 408 psegs->psg_dynamic.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; 409 psegs->psg_sunwdtrace.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; 411 psegs->psg_ldata.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; 414 psegs->psg_sunwstack.sg_phdr.p_flags = ld_targ.t_m.m_stack_perm; 433 (ld_targ.t_m.m_mach != EM_AMD64)) 464 if ((ld_targ.t_m.m_mach != EM_AMD64))
|
H A D | sections.c | 387 if (rsp->rel_rtype == ld_targ.t_m.m_r_relative) 463 info_s.align = ld_targ.t_m.m_word_align; \ 766 if (ident == ld_targ.t_id.id_tlsbss) { 771 } else if (ident == ld_targ.t_id.id_bss) { 776 } else if ((ld_targ.t_m.m_mach == EM_AMD64) && 777 (ident == ld_targ.t_id.id_lbss)) { 799 if (ident == ld_targ.t_id.id_tlsbss) 846 if (ld_place_section(ofl, isec, NULL, ld_targ.t_id.id_array, NULL) == 871 reld.rel_rtype = ld_targ.t_m.m_r_arrayaddr; 880 reloc.r_info = ELF_R_INFO(0, ld_targ [all...] |
H A D | files.c | 59 if ((ehdr->e_machine != ld_targ.t_m.m_mach) && 60 ((ehdr->e_machine != ld_targ.t_m.m_machplus) && 61 ((ehdr->e_flags & ld_targ.t_m.m_flagsplus) == 0))) { 66 if (ehdr->e_ident[EI_DATA] != ld_targ.t_m.m_data) { 93 ld_targ.t_m.m_mach)); 250 CA_SUNW_SF_1, val, ld_targ.t_m.m_mach)); 321 ofl->ofl_ocapset.oc_sf_1.cm_val, ld_targ.t_m.m_mach); 323 val, ld_targ.t_m.m_mach); 359 CA_SUNW_SF_1, ofl->ofl_ocapset.oc_sf_1.cm_val, ld_targ.t_m.m_mach)); 390 tag, val, ld_targ [all...] |
H A D | ldmain.c | 53 Target ld_targ; variable 109 * target, as reflected by the ld_targ global variable. 117 ld_targ = *ld_targ_init_x86(); 123 ld_targ = *ld_targ_init_sparc(); 171 def_ehdr.e_ident[EI_CLASS] = ld_targ.t_m.m_class; 172 def_ehdr.e_ident[EI_DATA] = ld_targ.t_m.m_data; 173 def_ehdr.e_machine = ld_targ.t_m.m_mach;
|
H A D | resolve.c | 278 if ((ld_targ.t_ms.ms_mach_sym_typecheck != NULL) && 279 (*ld_targ.t_ms.ms_mach_sym_typecheck)(sdp, nsym, ifl, ofl)) 306 if (ld_targ.t_ms.ms_mach_sym_typecheck != NULL) 307 (void) (*ld_targ.t_ms.ms_mach_sym_typecheck)(sdp, nsym, 583 if ((ld_targ.t_ms.ms_mach_sym_typecheck != NULL) && 584 (*ld_targ.t_ms.ms_mach_sym_typecheck)(sdp, nsym, ifl, ofl)) 842 if (ld_targ.t_m.m_mach == EM_AMD64) { 880 ((ld_targ.t_m.m_mach == EM_AMD64) && 1137 } else if ((ld_targ.t_m.m_mach == EM_AMD64) &&
|
H A D | unwind.c | 344 elfdata->d_align = ld_targ.t_m.m_word_align; 352 shdr->sh_type = ld_targ.t_m.m_sht_unwind; 354 shdr->sh_addralign = ld_targ.t_m.m_word_align; 367 ld_targ.t_id.id_unwindhdr, NULL)) == (Os_desc *)S_ERROR)
|
H A D | update.c | 644 if ((ld_targ.t_mr.mr_assign_got != NULL) && 645 (*ld_targ.t_mr.mr_assign_got)(ofl, sdp) == S_ERROR) 957 if ((ld_targ.t_m.m_mach == EM_AMD64) && ofl->ofl_islbss) { 1092 } else if ((ld_targ.t_m.m_mach == EM_AMD64) && 1199 if ((ld_targ.t_mr.mr_assign_got != NULL) && 1200 (*ld_targ.t_mr.mr_assign_got)(ofl, sdp) == S_ERROR) 1788 (*ld_targ.t_mr.mr_calc_plt_addr)(sdp, ofl); 1928 ld_targ.t_m.m_got_xnumber, ld_targ.t_m.m_got_entsize)); 2365 dyn->d_tag = ld_targ [all...] |
H A D | syms.c | 103 if (ld_targ.t_ms.ms_is_regsym != NULL) { 104 const char *regname = (*ld_targ.t_ms.ms_is_regsym)(ofl, ifl, 428 else if ((ld_targ.t_m.m_mach == EM_AMD64) && 529 ((ld_targ.t_m.m_mach == EM_AMD64) && 1544 if ((ld_targ.t_m.m_mach == EM_AMD64) && 1693 ld_targ.t_id.id_bss) == S_ERROR) 1698 ld_targ.t_id.id_tlsbss) == S_ERROR) 1702 if ((ld_targ.t_m.m_mach == EM_AMD64) && 1705 ld_targ.t_id.id_lbss) == S_ERROR) 2096 * the pointers in ld_targ [all...] |
H A D | map_v2.c | 244 type, capmask->cm_val, ld_targ.t_m.m_mach)); 253 ld_targ.t_m.m_mach)); 257 DBG_STATE_ADD, type, value, ld_targ.t_m.m_mach)); 263 DBG_STATE_EXCLUDE, type, value, ld_targ.t_m.m_mach)); 278 DBG_STATE_RESOLVED, type, capmask->cm_val, ld_targ.t_m.m_mach)); 803 *flags |= ld_targ.t_m.m_dataseg_perm; 806 *flags |= ld_targ.t_m.m_stack_perm; 895 tkv.tkv_str, ld_targ.t_m.m_mach)) != 0) { 1010 tkv.tkv_str, ld_targ.t_m.m_mach)) != 0) { 1015 tkv.tkv_str, ld_targ [all...] |
H A D | map.c | 83 capmask->cm_val, ld_targ.t_m.m_mach); 107 type, tkv.tkv_str, ld_targ.t_m.m_mach)) != 0) { 143 ld_targ.t_m.m_mach)); 649 enp->ec_type = ld_targ.t_m.m_rel_sht_type;
|
H A D | map_core.c | 902 if (cexp_ident_add(NULL, (ld_targ.t_m.m_class == ELFCLASS32) ? 907 switch (ld_targ.t_m.m_mach) { 2485 ld_targ.t_m.m_mach, sgp1)); 2594 ld_targ.t_m.m_mach, sgp1); 2808 conv_phdr_type(ELFOSABI_SOLARIS, ld_targ.t_m.m_mach, 2830 ld_targ.t_id.id_text, NULL) == (Os_desc *)S_ERROR) 2836 ld_targ.t_id.id_data, NULL) == (Os_desc *)S_ERROR)
|
H A D | ldlibs.c | 346 conv_reject_desc(&rej, &rej_buf, ld_targ.t_m.m_mach));
|
H A D | _libld.h | 50 * This is done using a global variable (ld_targ) of type Target to 758 #define ld_targ ld64_targ macro 856 #define ld_targ ld32_targ macro 1002 extern Target ld_targ;
|
H A D | args.c | 615 if (ld_ent_setup(ofl, ld_targ.t_m.m_segm_align) == S_ERROR) 624 if (_elf_sys_encoding() != ld_targ.t_m.m_data) 631 if (ld_targ.t_ff.ff_execfill != NULL) 632 _elf_execfill(ld_targ.t_ff.ff_execfill); 2070 ld_targ.t_m.m_mach));
|
H A D | place.c | 1096 (ident != ld_targ.t_id.id_rel) && 1255 osp->os_shdr->sh_type = ld_targ.t_m.m_sht_unwind;
|
H A D | libs.c | 870 conv_reject_desc(&rej, &rej_buf, ld_targ.t_m.m_mach));
|
H A D | map_support.c | 645 sgp->sg_phdr.p_align = ld_targ.t_m.m_segm_align;
|