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, master, updated. glibc-2.14-52-g62bede1


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, master has been updated
       via  62bede1313c3a1fa477a092006d64436de6821b1 (commit)
       via  78a7eee7fab0802addf500c481335ed6e9899bda (commit)
      from  034807a9cbddfa9e7d35df4cdb2ecce569a00851 (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=62bede1313c3a1fa477a092006d64436de6821b1

commit 62bede1313c3a1fa477a092006d64436de6821b1
Author: Roland McGrath <roland@hack.frob.com>
Date:   Mon Jun 27 20:39:05 2011 -0700

    Distinguish configure check for .ctors/.dtors header/trailers.

diff --git a/ChangeLog b/ChangeLog
index 94dac81..76779f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-06-27  Roland McGrath  <roland@hack.frob.com>
 
+	* configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
+	AC_CACHE_CHECK invocation.
+	* configure: Regenerated.
+
 	* elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
 
 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
diff --git a/configure b/configure
index 1db57ae..7814072 100755
--- a/configure
+++ b/configure
@@ -6111,12 +6111,28 @@ fi
 $as_echo "$libc_cv_initfini_array" >&6; }
   if test $libc_cv_initfini_array != yes; then
     as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
-  elif { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&5'
+  fi
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
+$as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
+if ${libc_cv_ctors_header+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+    if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 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_ctors_header=no
+  else
+    libc_cv_ctors_header=yes
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
+$as_echo "$libc_cv_ctors_header" >&6; }
+
+  if test $libc_cv_ctors_header = no; then
     $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
 
   fi
diff --git a/configure.in b/configure.in
index d3f5210..fc2a193 100644
--- a/configure.in
+++ b/configure.in
@@ -1479,7 +1479,17 @@ EOF
   rm -f conftest*])
   if test $libc_cv_initfini_array != yes; then
     AC_MSG_ERROR([Need linker with .init_array/.fini_array support.])
-  elif AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&AS_MESSAGE_LOG_FD]); then
+  fi
+
+  AC_CACHE_CHECK(whether to use .ctors/.dtors header and trailer,
+		 libc_cv_ctors_header, [dnl
+  if AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&AS_MESSAGE_LOG_FD]); then
+    libc_cv_ctors_header=no
+  else
+    libc_cv_ctors_header=yes
+  fi])
+
+  if test $libc_cv_ctors_header = no; then
     AC_DEFINE(NO_CTORS_DTORS_SECTIONS)
   fi
 

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=78a7eee7fab0802addf500c481335ed6e9899bda

commit 78a7eee7fab0802addf500c481335ed6e9899bda
Author: Roland McGrath <roland@hack.frob.com>
Date:   Sat Jun 25 01:23:01 2011 -0700

    Fix missing .ctors/.dtors lead word in soinit

diff --git a/ChangeLog b/ChangeLog
index b545852..94dac81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-27  Roland McGrath  <roland@hack.frob.com>
+
+	* elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
+
 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
 
 	[BZ #12350]
diff --git a/elf/soinit.c b/elf/soinit.c
index 76033ea..7139830 100644
--- a/elf/soinit.c
+++ b/elf/soinit.c
@@ -8,11 +8,11 @@
 # include <stdlib.h>
 
 static void (*const __CTOR_LIST__[1]) (void)
-     __attribute__ ((section (".ctors")))
-     = { (void (*) (void)) -1 };
+  __attribute__ ((used, section (".ctors")))
+  = { (void (*) (void)) -1 };
 static void (*const __DTOR_LIST__[1]) (void)
-     __attribute__ ((section (".dtors")))
-     = { (void (*) (void)) -1 };
+  __attribute__ ((used, section (".dtors")))
+  = { (void (*) (void)) -1 };
 
 static inline void
 run_hooks (void (*const list[]) (void))

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

Summary of changes:
 ChangeLog    |    8 ++++++++
 configure    |   18 +++++++++++++++++-
 configure.in |   12 +++++++++++-
 elf/soinit.c |    8 ++++----
 4 files changed, 40 insertions(+), 6 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]