usr/src/cmd/sgs/libld/common/sections.c
changeset 12449 a87750d92895
parent 12155 50d9d4aeb501
child 12755 d0e34618055c
--- a/usr/src/cmd/sgs/libld/common/sections.c	Wed May 19 21:10:39 2010 -0700
+++ b/usr/src/cmd/sgs/libld/common/sections.c	Wed May 19 22:33:49 2010 -0700
@@ -995,10 +995,9 @@
 		}
 
 		/*
-		 * If this object is a lazyload reserve a DT_POSFLAG_1 entry.
+		 * If this object requires a DT_POSFLAG_1 entry, reserve it.
 		 */
-		if ((ifl->ifl_flags & (FLG_IF_LAZYLD | FLG_IF_GRPPRM)) &&
-		    not_relobj)
+		if ((ifl->ifl_flags & MSK_IF_POSFLAG1) && not_relobj)
 			cnt++;
 
 		if (st_insert(strtbl, ifl->ifl_soname) == -1)
@@ -1593,6 +1592,7 @@
 		ld_cap_move_symtoobj(ofl);
 		ofl->ofl_capsymcnt = 0;
 		ofl->ofl_capgroups = NULL;
+		ofl->ofl_flags &= ~FLG_OF_OTOSCAP;
 	}
 
 	/*