changeset 10270:2dc261f74cc2

6842850 onstc libthread test functional/fork/fork_002 is timing out
author Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date Thu, 06 Aug 2009 17:19:00 -0700
parents 2788675568fd
children 7c80b70bb8de
files usr/src/lib/libc/amd64/Makefile usr/src/lib/libc/i386/Makefile.com usr/src/lib/libc/sparc/Makefile.com usr/src/lib/libc/sparcv9/Makefile.com
diffstat 4 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libc/amd64/Makefile	Thu Aug 06 12:51:48 2009 -0600
+++ b/usr/src/lib/libc/amd64/Makefile	Thu Aug 06 17:19:00 2009 -0700
@@ -947,6 +947,11 @@
 RTLDINFO =	-z rtldinfo=tls_rtldinfo
 DYNFLAGS +=	$(RTLDINFO)
 
+# Force libc's internal references to be resolved immediately upon loading
+# in order to avoid critical region problems.  Since almost all libc symbols
+# are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
+DYNFLAGS +=	-znow
+
 BUILD.s=	$(AS) $(ASFLAGS) $< -o $@
 
 # Override this top level flag so the compiler builds in its native
--- a/usr/src/lib/libc/i386/Makefile.com	Thu Aug 06 12:51:48 2009 -0600
+++ b/usr/src/lib/libc/i386/Makefile.com	Thu Aug 06 17:19:00 2009 -0700
@@ -994,6 +994,11 @@
 RTLDINFO =	-z rtldinfo=tls_rtldinfo
 DYNFLAGS +=	$(RTLDINFO)
 
+# Force libc's internal references to be resolved immediately upon loading
+# in order to avoid critical region problems.  Since almost all libc symbols
+# are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
+DYNFLAGS +=	-znow
+
 DYNFLAGS +=	-e __rtboot
 DYNFLAGS +=	$(EXTN_DYNFLAGS)
 
--- a/usr/src/lib/libc/sparc/Makefile.com	Thu Aug 06 12:51:48 2009 -0600
+++ b/usr/src/lib/libc/sparc/Makefile.com	Thu Aug 06 17:19:00 2009 -0700
@@ -1011,6 +1011,11 @@
 RTLDINFO =	-z rtldinfo=tls_rtldinfo
 DYNFLAGS +=	$(RTLDINFO)
 
+# Force libc's internal references to be resolved immediately upon loading
+# in order to avoid critical region problems.  Since almost all libc symbols
+# are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
+DYNFLAGS +=	-znow
+
 DYNFLAGS +=	-e __rtboot
 DYNFLAGS +=	$(EXTN_DYNFLAGS)
 
--- a/usr/src/lib/libc/sparcv9/Makefile.com	Thu Aug 06 12:51:48 2009 -0600
+++ b/usr/src/lib/libc/sparcv9/Makefile.com	Thu Aug 06 17:19:00 2009 -0700
@@ -956,6 +956,11 @@
 RTLDINFO =	-z rtldinfo=tls_rtldinfo
 DYNFLAGS +=	$(RTLDINFO)
 
+# Force libc's internal references to be resolved immediately upon loading
+# in order to avoid critical region problems.  Since almost all libc symbols
+# are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
+DYNFLAGS +=	-znow
+
 DYNFLAGS +=	$(EXTN_DYNFLAGS)
 
 BUILD.s=	$(AS) $(ASFLAGS) $< -o $@