From 32a6953793c636df949ca1ae3555438159bda3f6 Mon Sep 17 00:00:00 2001 From: "Roger A. Faulkner" Date: Thu, 6 Aug 2009 17:19:00 -0700 Subject: 6842850 onstc libthread test functional/fork/fork_002 is timing out --- usr/src/lib/libc/amd64/Makefile | 5 +++++ usr/src/lib/libc/i386/Makefile.com | 5 +++++ usr/src/lib/libc/sparc/Makefile.com | 5 +++++ usr/src/lib/libc/sparcv9/Makefile.com | 5 +++++ 4 files changed, 20 insertions(+) (limited to 'usr/src/lib/libc') diff --git a/usr/src/lib/libc/amd64/Makefile b/usr/src/lib/libc/amd64/Makefile index 18e928d9d3..bcc340381f 100644 --- a/usr/src/lib/libc/amd64/Makefile +++ b/usr/src/lib/libc/amd64/Makefile @@ -947,6 +947,11 @@ pics/proc64_id.o := CFLAGS64 += -I$(SRC)/uts/intel 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 diff --git a/usr/src/lib/libc/i386/Makefile.com b/usr/src/lib/libc/i386/Makefile.com index cd38b0349e..6bc389bc30 100644 --- a/usr/src/lib/libc/i386/Makefile.com +++ b/usr/src/lib/libc/i386/Makefile.com @@ -994,6 +994,11 @@ CPPFLAGS += -DWORDEXP_KSH93=$(ON_BUILD_KSH93_AS_BINKSH) 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) diff --git a/usr/src/lib/libc/sparc/Makefile.com b/usr/src/lib/libc/sparc/Makefile.com index 810e34749f..5fea549d5c 100644 --- a/usr/src/lib/libc/sparc/Makefile.com +++ b/usr/src/lib/libc/sparc/Makefile.com @@ -1011,6 +1011,11 @@ CPPFLAGS += -DWORDEXP_KSH93=$(ON_BUILD_KSH93_AS_BINKSH) 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) diff --git a/usr/src/lib/libc/sparcv9/Makefile.com b/usr/src/lib/libc/sparcv9/Makefile.com index e77ac5368e..bf29faa9ed 100644 --- a/usr/src/lib/libc/sparcv9/Makefile.com +++ b/usr/src/lib/libc/sparcv9/Makefile.com @@ -956,6 +956,11 @@ CPPFLAGS += -DWORDEXP_KSH93=$(ON_BUILD_KSH93_AS_BINKSH) 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 $@ -- cgit v1.2.3