View | Details | Raw Unified | Return to bug 234451
Collapse All | Expand All

(-)libexec/rtld-elf/rtld.c (-3 / +2 lines)
Lines 1419-1428 Link Here
1419
	    if (nsegs == 0) {	/* First load segment */
1419
	    if (nsegs == 0) {	/* First load segment */
1420
		obj->vaddrbase = trunc_page(ph->p_vaddr);
1420
		obj->vaddrbase = trunc_page(ph->p_vaddr);
1421
		obj->mapbase = obj->vaddrbase + obj->relocbase;
1421
		obj->mapbase = obj->vaddrbase + obj->relocbase;
1422
	    } else {		/* Last load segment */
1423
		obj->mapsize = round_page(ph->p_vaddr + ph->p_memsz) -
1424
		  obj->vaddrbase;
1425
	    }
1422
	    }
1423
	    obj->mapsize = round_page(ph->p_vaddr + ph->p_memsz) -
1424
		obj->vaddrbase;
1426
	    nsegs++;
1425
	    nsegs++;
1427
	    break;
1426
	    break;
1428
1427

Return to bug 234451