Home
last modified time | relevance | path

Searched refs:sg_phdr (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dmap.c238 (sgp->sg_phdr.p_flags != tmp_flags) && in map_equal_flags()
239 !(sgp->sg_phdr.p_type == PT_LOAD && in map_equal_flags()
241 (tmp_flags ^ sgp->sg_phdr.p_flags) == PF_X)) in map_equal_flags()
246 sgp->sg_phdr.p_flags = tmp_flags; in map_equal_flags()
349 (sgp->sg_phdr.p_type != seg_type->p_type)) { in map_equal()
355 sgp->sg_phdr.p_type = seg_type->p_type; in map_equal()
423 (sgp->sg_phdr.p_vaddr != number)) in map_equal()
429 sgp->sg_phdr.p_vaddr = (Addr)number; in map_equal()
441 (sgp->sg_phdr.p_paddr != number)) in map_equal()
447 sgp->sg_phdr.p_paddr = (Addr)number; in map_equal()
[all …]
H A Dentry.c406 psegs->psg_data.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; in ld_ent_setup()
407 psegs->psg_bss.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; in ld_ent_setup()
408 psegs->psg_dynamic.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; in ld_ent_setup()
409 psegs->psg_sunwdtrace.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; in ld_ent_setup()
411 psegs->psg_ldata.sg_phdr.p_flags = ld_targ.t_m.m_dataseg_perm; in ld_ent_setup()
412 psegs->psg_sunwdtrace.sg_phdr.p_flags |= PF_X; in ld_ent_setup()
414 psegs->psg_sunwstack.sg_phdr.p_flags = ld_targ.t_m.m_stack_perm; in ld_ent_setup()
416 psegs->psg_data.sg_phdr.p_flags |= PF_X; in ld_ent_setup()
457 Phdr *phdr = &(sgp->sg_phdr); in ld_ent_setup()
H A Dmap_support.c539 sgp->sg_phdr.p_type = p_type; in ld_map_seg_alloc()
576 if (sgp->sg_phdr.p_type == PT_SUNWSTACK) { in ld_map_seg_stack()
626 (sgp->sg_phdr.p_type == PT_NULL)) { in ld_map_seg_insert()
630 sgp->sg_phdr.p_type = PT_LOAD; in ld_map_seg_insert()
633 if (sgp->sg_phdr.p_type == PT_LOAD) { in ld_map_seg_insert()
638 sgp->sg_phdr.p_flags = PF_R + PF_W + PF_X; in ld_map_seg_insert()
645 sgp->sg_phdr.p_align = ld_targ.t_m.m_segm_align; in ld_map_seg_insert()
654 switch (sgp->sg_phdr.p_type) { in ld_map_seg_insert()
672 EC_WORD(sgp->sg_phdr.p_type)); in ld_map_seg_insert()
H A Doutfile.c218 Phdr *phdr = &(sgp->sg_phdr); in pad_outfile()
430 Phdr *phdr = &(sgp->sg_phdr); in ld_create_outfile()
493 ptype = (sgp->sg_phdr).p_type = PT_NULL; in ld_create_outfile()
811 Phdr *_phdr = &(sgp->sg_phdr); in ld_create_outfile()
H A Dupdate.c387 Phdr *phd = &(sgp->sg_phdr); in update_osym()
458 start = sgp->sg_phdr.p_vaddr; in update_osym()
516 etext = tsgp->sg_phdr.p_vaddr + tsgp->sg_phdr.p_filesz; in update_osym()
526 edata = dsgp->sg_phdr.p_vaddr + dsgp->sg_phdr.p_filesz; in update_osym()
543 else if (dsgp->sg_phdr.p_vaddr > tsgp->sg_phdr.p_vaddr) in update_osym()
545 else if (dsgp->sg_phdr.p_vaddr < tsgp->sg_phdr.p_vaddr) in update_osym()
551 if (tsgp->sg_phdr.p_memsz) in update_osym()
557 if (esgp && (esgp->sg_phdr.p_vaddr > sgp->sg_phdr.p_vaddr)) in update_osym()
561 end = sgp->sg_phdr.p_vaddr + sgp->sg_phdr.p_memsz; in update_osym()
575 if ((sgp->sg_phdr.p_flags & PF_W) == 0) in update_osym()
[all …]
H A Dmap_core.c2515 if ((sgp1->sg_phdr.p_type != PT_LOAD) || in sort_seg_list()
2553 if (sgp1->sg_phdr.p_vaddr == in sort_seg_list()
2554 sgp2->sg_phdr.p_vaddr) { in sort_seg_list()
2562 if (sgp1->sg_phdr.p_vaddr > in sort_seg_list()
2563 sgp2->sg_phdr.p_vaddr) in sort_seg_list()
2601 (sgp1->sg_phdr.p_type == PT_LOAD) || in sort_seg_list()
2830 (first_seg->sg_phdr.p_type != PT_LOAD)) { in ld_map_post_process()
2836 first_seg->sg_phdr.p_type, 0, &inv_buf), in ld_map_post_process()
H A Dldentry.c90 if (sgp->sg_phdr.p_type != PT_LOAD) in ld_map_out()
H A Drelocate.c2160 (osect && (osect->os_sgdesc->sg_phdr.p_type == PT_LOAD))) in reloc_section()
2210 if ((sgp->sg_phdr.p_flags & PF_W) != wr_flag) in reloc_segments()
2245 (sgp->sg_phdr.p_type == PT_LOAD) && in reloc_segments()
2246 ((sgp->sg_phdr.p_flags & PF_W) == 0)) { in reloc_segments()
2817 (osp->os_sgdesc->sg_phdr.p_type != PT_LOAD) || in ld_reloc_remain_entry()
2818 (osp->os_sgdesc->sg_phdr.p_flags & PF_W)) in ld_reloc_remain_entry()
H A Dmap_v2.c1530 sgp->sg_phdr.p_align = tkv.tkv_int.tkvi_value; in at_seg_align()
1979 setflags_eq(&sgp->sg_phdr.p_flags, eq_tok, flags); in at_seg_flags()
2178 sgp->sg_phdr.p_paddr = tkv.tkv_int.tkvi_value; in at_seg_paddr()
2290 sgp->sg_phdr.p_vaddr = tkv.tkv_int.tkvi_value; in at_seg_vaddr()
2341 if (sgp->sg_phdr.p_type != seg_type) { in dir_segment_inner()
2346 sgp->sg_phdr.p_type, CONV_FMT_ALT_CF, &inv_buf), in dir_segment_inner()
H A Dplace.c68 (osp->os_sgdesc->sg_phdr).p_type != PT_LOAD) in set_addralign()
1460 if ((sgp->sg_phdr.p_type == PT_LOAD) && in ld_place_section()
H A Dsections.c155 (osp->os_sgdesc->sg_phdr.p_type == PT_LOAD)) { in ignore_sym()
171 Word ptype = osp->os_sgdesc->sg_phdr.p_type; in isdesc_discarded()
310 (sgp->sg_phdr.p_type == PT_LOAD)) { in ignore_section_processing()
1248 (sgp->sg_phdr.p_flags & PF_W) && ofl->ofl_osinterp) in make_dynamic()
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dmap.c197 type_str = conv_phdr_type(osabi, mach, sgp->sg_phdr.p_type, in Dbg_map_sort_seg()
204 EC_ADDR(sgp->sg_phdr.p_vaddr)); in Dbg_map_sort_seg()
304 type_str = conv_phdr_type(osabi, mach, sgp->sg_phdr.p_type, in Dbg_map_seg_order()
H A Dsegments.c52 Elf_phdr(lml, osabi, mach, &sgp->sg_phdr); in Dbg_seg_desc_entry()
/illumos-gate/usr/src/cmd/sgs/include/
H A Dlibld.h1064 Phdr sg_phdr; /* segment header for output file */ member