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