changeset 3464:c868c42f7be7

6515970 HWCAP processing doesn't clean up fmap structure - browser fails to run java applet
author rie
date Mon, 22 Jan 2007 16:25:40 -0800
parents 5007f15d5674
children d3ee62ddc096
files usr/src/cmd/sgs/packages/common/SUNWonld-README usr/src/cmd/sgs/rtld/common/cap.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/sgs/packages/common/SUNWonld-README	Mon Jan 22 14:33:31 2007 -0800
+++ b/usr/src/cmd/sgs/packages/common/SUNWonld-README	Mon Jan 22 16:25:40 2007 -0800
@@ -1,6 +1,6 @@
 #ident	"%Z%%M%	%I%	%E% SMI"
 #
-# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 # CDDL HEADER START
@@ -1151,3 +1151,5 @@
 6496718 restricted visibility symbol references should trigger archive
 	extraction
 6501793 GOTOP relocation transition (optimization) fails with offsets > 2^32
+6515970 HWCAP processing doesn't clean up fmap structure - browser fails to
+	run java applet
--- a/usr/src/cmd/sgs/rtld/common/cap.c	Mon Jan 22 14:33:31 2007 -0800
+++ b/usr/src/cmd/sgs/rtld/common/cap.c	Mon Jan 22 16:25:40 2007 -0800
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 #pragma ident	"%Z%%M%	%I%	%E% SMI"
@@ -122,8 +122,10 @@
 		 * from the global fmap descriptor.  If so, clean up the global
 		 * descriptor to prevent a duplicate (unnecessary) unmap.
 		 */
-		if (fmap->fm_maddr == fdp->fd_fmap.fm_maddr)
+		if (fmap->fm_maddr == fdp->fd_fmap.fm_maddr) {
 			fmap->fm_maddr = 0;
+			fmap_setup();
+		}
 	}
 	if (fdp->fd_fd)
 		(void) close(fdp->fd_fd);