Lines Matching refs:sgp
170 map_equal_flags(Mapfile *mf, Sg_desc *sgp, Boolean *b_flags, in map_equal_flags() argument
200 sgp->sg_flags |= FLG_SG_EMPTY; in map_equal_flags()
207 if (aplist_nitems(sgp->sg_is_order) > 0) { in map_equal_flags()
209 sgp->sg_name); in map_equal_flags()
217 sgp->sg_flags |= FLG_SG_IS_ORDER; in map_equal_flags()
224 sgp->sg_flags |= FLG_SG_NOHDR; in map_equal_flags()
237 if ((sgp->sg_flags & FLG_SG_P_FLAGS) && in map_equal_flags()
238 (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()
243 MSG_INTL(MSG_MAP_SEGFLAG), sgp->sg_name); in map_equal_flags()
245 sgp->sg_flags |= FLG_SG_P_FLAGS; in map_equal_flags()
246 sgp->sg_phdr.p_flags = tmp_flags; in map_equal_flags()
293 map_equal(Mapfile *mf, Sg_desc *sgp) in map_equal() argument
348 if ((sgp->sg_flags & FLG_SG_P_TYPE) && in map_equal()
349 (sgp->sg_phdr.p_type != seg_type->p_type)) { in map_equal()
352 sgp->sg_name); in map_equal()
355 sgp->sg_phdr.p_type = seg_type->p_type; in map_equal()
356 sgp->sg_flags |= seg_type->sg_flags; in map_equal()
365 if (!map_equal_flags(mf, sgp, &b_flags, tkv.tkv_str)) in map_equal()
388 if ((sgp->sg_flags & FLG_SG_LENGTH) && in map_equal()
389 (sgp->sg_length != number)) in map_equal()
393 sgp->sg_name); in map_equal()
394 sgp->sg_length = number; in map_equal()
395 sgp->sg_flags |= FLG_SG_LENGTH; in map_equal()
405 if ((sgp->sg_flags & FLG_SG_ROUND) && in map_equal()
406 (sgp->sg_round != number)) in map_equal()
410 sgp->sg_name); in map_equal()
411 sgp->sg_round = number; in map_equal()
412 sgp->sg_flags |= FLG_SG_ROUND; in map_equal()
422 if ((sgp->sg_flags & FLG_SG_P_VADDR) && in map_equal()
423 (sgp->sg_phdr.p_vaddr != number)) in map_equal()
427 sgp->sg_name); in map_equal()
429 sgp->sg_phdr.p_vaddr = (Addr)number; in map_equal()
430 sgp->sg_flags |= FLG_SG_P_VADDR; in map_equal()
440 if ((sgp->sg_flags & FLG_SG_P_PADDR) && in map_equal()
441 (sgp->sg_phdr.p_paddr != number)) in map_equal()
445 sgp->sg_name); in map_equal()
447 sgp->sg_phdr.p_paddr = (Addr)number; in map_equal()
448 sgp->sg_flags |= FLG_SG_P_PADDR; in map_equal()
458 if ((sgp->sg_flags & FLG_SG_P_ALIGN) && in map_equal()
459 (sgp->sg_phdr.p_align != number)) in map_equal()
463 sgp->sg_name); in map_equal()
465 sgp->sg_phdr.p_align = (Xword)number; in map_equal()
466 sgp->sg_flags |= FLG_SG_P_ALIGN; in map_equal()
496 if ((sgp->sg_flags & FLG_SG_EMPTY) && in map_equal()
497 (sgp->sg_phdr.p_type != PT_SUNWSTACK)) { in map_equal()
502 if (sgp->sg_phdr.p_flags != 0) { in map_equal()
504 EC_WORD(sgp->sg_phdr.p_flags)); in map_equal()
508 if (sgp->sg_phdr.p_type == PT_LOAD) { in map_equal()
513 if ((sgp->sg_flags & in map_equal()
519 } else if (sgp->sg_phdr.p_type == PT_NULL) { in map_equal()
520 if ((sgp->sg_flags & in map_equal()
522 ((sgp->sg_length != 0) || in map_equal()
523 (sgp->sg_phdr.p_vaddr != 0))) { in map_equal()
529 sgp->sg_phdr.p_type = PT_LOAD; in map_equal()
541 if ((sgp->sg_phdr.p_type != PT_NULL) && in map_equal()
542 (sgp->sg_phdr.p_type != PT_LOAD)) { in map_equal()
545 if (sgp->sg_phdr.p_type == PT_SUNWSTACK) in map_equal()
550 if ((sgp->sg_flags & FLG_SG_P_FLAGS) && in map_equal()
551 (sgp->sg_phdr.p_type != PT_SUNWSTACK)) { in map_equal()
552 if (sgp->sg_phdr.p_flags != 0) { in map_equal()
555 sgp->sg_phdr.p_flags = 0; in map_equal()
558 if (sgp->sg_flags & FLG_SG_LENGTH) in map_equal()
559 if (sgp->sg_length != 0) { in map_equal()
561 sgp->sg_length = 0; in map_equal()
563 if (sgp->sg_flags & FLG_SG_ROUND) in map_equal()
564 if (sgp->sg_round != 0) { in map_equal()
566 sgp->sg_round = 0; in map_equal()
568 if (sgp->sg_flags & FLG_SG_P_VADDR) { in map_equal()
569 if (sgp->sg_phdr.p_vaddr != 0) { in map_equal()
571 sgp->sg_phdr.p_vaddr = 0; in map_equal()
574 if (sgp->sg_flags & FLG_SG_P_PADDR) in map_equal()
575 if (sgp->sg_phdr.p_paddr != 0) { in map_equal()
577 sgp->sg_phdr.p_paddr = 0; in map_equal()
579 if (sgp->sg_flags & FLG_SG_P_ALIGN) in map_equal()
580 if (sgp->sg_phdr.p_align != 0) { in map_equal()
582 sgp->sg_phdr.p_align = 0; in map_equal()
801 map_atsign(Mapfile *mf, Sg_desc *sgp) in map_atsign() argument
813 if (!ld_map_seg_size_symbol(mf, sgp, TK_PLUSEQ, tkv.tkv_str)) in map_atsign()
828 map_pipe(Mapfile *mf, Sg_desc *sgp) in map_pipe() argument
839 if (!ld_map_seg_os_order_add(mf, sgp, tkv.tkv_str)) in map_pipe()