This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch hjl/global updated. glibc-2.16-ports-merge-745-gf218180


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, hjl/global has been updated
       via  f21818005839ca578e3bb0a30939e4b7d4d188b5 (commit)
      from  ce196a982fa5de72534ca59904811cd0c5f7cda0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f21818005839ca578e3bb0a30939e4b7d4d188b5

commit f21818005839ca578e3bb0a30939e4b7d4d188b5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Nov 21 07:50:58 2012 -0800

    Check if -z global works

diff --git a/config.make.in b/config.make.in
index 7f1bbb5..b282f1c 100644
--- a/config.make.in
+++ b/config.make.in
@@ -51,6 +51,7 @@ all-warnings = @all_warnings@
 
 have-z-combreloc = @libc_cv_z_combreloc@
 have-z-execstack = @libc_cv_z_execstack@
+have-z-global = @libc_cv_z_global@
 have-Bgroup = @libc_cv_Bgroup@
 with-fp = @with_fp@
 old-glibc-headers = @old_glibc_headers@
diff --git a/configure b/configure
index 1927ce8..e612f6e 100755
--- a/configure
+++ b/configure
@@ -613,6 +613,7 @@ fno_unit_at_a_time
 libc_cv_output_format
 libc_cv_hashstyle
 libc_cv_fpie
+libc_cv_z_global
 libc_cv_z_execstack
 libc_cv_z_combreloc
 ASFLAGS_config
@@ -6539,6 +6540,34 @@ fi
 $as_echo "$libc_cv_z_execstack" >&6; }
 
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z global" >&5
+$as_echo_n "checking for -z global... " >&6; }
+if ${libc_cv_z_global+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat > conftest.c <<EOF
+int _start (void) { return 42; }
+EOF
+if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
+			    -fPIC -shared -o conftest.so conftest.c
+			    -Wl,-z,global -nostdlib
+			    1>&5'
+  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }
+then
+  libc_cv_z_global=yes
+else
+  libc_cv_z_global=no
+fi
+rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_global" >&5
+$as_echo "$libc_cv_z_global" >&6; }
+
+
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
 $as_echo_n "checking for -fpie... " >&6; }
 if ${libc_cv_fpie+:} false; then :
diff --git a/configure.in b/configure.in
index 9decd7d..c45fc2b 100644
--- a/configure.in
+++ b/configure.in
@@ -1610,6 +1610,23 @@ fi
 rm -f conftest*])
 AC_SUBST(libc_cv_z_execstack)
 
+AC_CACHE_CHECK(for -z global,
+	       libc_cv_z_global, [dnl
+cat > conftest.c <<EOF
+int _start (void) { return 42; }
+EOF
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
+			    -fPIC -shared -o conftest.so conftest.c
+			    -Wl,-z,global -nostdlib
+			    1>&AS_MESSAGE_LOG_FD])
+then
+  libc_cv_z_global=yes
+else
+  libc_cv_z_global=no
+fi
+rm -f conftest*])
+AC_SUBST(libc_cv_z_global)
+
 AC_CACHE_CHECK(for -fpie, libc_cv_fpie, [dnl
 LIBC_TRY_CC_OPTION([-fpie], [libc_cv_fpie=yes], [libc_cv_fpie=no])
 ])
diff --git a/elf/Makefile b/elf/Makefile
index a70b836..fa7b6c3 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -145,8 +145,11 @@ tests += loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
 	 tst-audit1 tst-audit2 tst-audit8 \
 	 tst-stackguard1 tst-addr1 tst-thrlock \
 	 tst-unique1 tst-unique2 tst-unique3 tst-unique4 \
-	 tst-initorder tst-initorder2 tst-relsort1 reldep10
+	 tst-initorder tst-initorder2 tst-relsort1
 #	 reldep9
+ifeq (yes,$(have-z-global))
+tests += reldep10
+endif
 test-srcs = tst-pathopt
 selinux-enabled := $(shell cat /selinux/enforce 2> /dev/null)
 ifneq ($(selinux-enabled),1)

-----------------------------------------------------------------------

Summary of changes:
 config.make.in |    1 +
 configure      |   29 +++++++++++++++++++++++++++++
 configure.in   |   17 +++++++++++++++++
 elf/Makefile   |    5 ++++-
 4 files changed, 51 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]