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.26.9000-1131-g4942c4e


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  4942c4ea48099b4ba9dfecf7cfbc452ae74811b5 (commit)
      from  10d200dbace0ea5198006b313f40c3b884c88724 (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4942c4ea48099b4ba9dfecf7cfbc452ae74811b5

commit 4942c4ea48099b4ba9dfecf7cfbc452ae74811b5
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Jan 16 20:53:03 2018 +0000

    Use LIBGCC_S_SO in x86_64 backtrace.
    
    The x86_64 backtrace implementation is used as a generic
    implementation (unwinding via unwind info and _Unwind_Backtrace) by
    various other architectures.  This patch makes it more generic by
    making it use LIBGCC_S_SO from gnu/lib-names.h instead of hardcoding
    the libgcc_s.so.1 name, so that it can also be used on hppa which uses
    libgcc_s.so.4.
    
    Tested for x86_64.
    
    	* sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
    	(init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".

diff --git a/ChangeLog b/ChangeLog
index 9d96be0..42f871e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-16  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
+	(init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
+
 2018-01-16  Florian Weimer  <fweimer@redhat.com>
 
 	* nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
diff --git a/sysdeps/x86_64/backtrace.c b/sysdeps/x86_64/backtrace.c
index 2706b50..d423cc0 100644
--- a/sysdeps/x86_64/backtrace.c
+++ b/sysdeps/x86_64/backtrace.c
@@ -20,6 +20,7 @@
 #include <libc-lock.h>
 #include <dlfcn.h>
 #include <execinfo.h>
+#include <gnu/lib-names.h>
 #include <stdlib.h>
 #include <unwind.h>
 
@@ -49,7 +50,7 @@ dummy_getcfa (struct _Unwind_Context *ctx __attribute__ ((unused)))
 static void
 init (void)
 {
-  libgcc_handle = __libc_dlopen ("libgcc_s.so.1");
+  libgcc_handle = __libc_dlopen (LIBGCC_S_SO);
 
   if (libgcc_handle == NULL)
     return;

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

Summary of changes:
 ChangeLog                  |    5 +++++
 sysdeps/x86_64/backtrace.c |    3 ++-
 2 files changed, 7 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]