[前][次][番号順一覧][スレッド一覧]

ruby-changes:48727

From: normal <ko1@a...>
Date: Sun, 19 Nov 2017 06:57:44 +0900 (JST)
Subject: [ruby-changes:48727] normal:r60843 (trunk): addr2line.c: fix r60841 for glibc before 2.22

normal	2017-11-19 06:57:38 +0900 (Sun, 19 Nov 2017)

  New Revision: 60843

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60843

  Log:
    addr2line.c: fix r60841 for glibc before 2.22
    
    SHF_COMPRESSED was not defined until glibc 2.22, and there are
    older distros (e.g. Debian 8.x jessie) which do not have this
    defined.
    
    Perhaps it is safe to define SHF_COMPRESSED to (1 << 11) ourselves,
    too, since ELF should be a standardized format.

  Modified files:
    trunk/addr2line.c
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 60842)
+++ addr2line.c	(revision 60843)
@@ -95,6 +95,10 @@ void *alloca(); https://github.com/ruby/ruby/blob/trunk/addr2line.c#L95
 #define PATH_MAX 4096
 #endif
 
+#ifndef SHF_COMPRESSED /* compatibility with glibc < 2.22 */
+#define SHF_COMPRESSED 0
+#endif
+
 int kprintf(const char *fmt, ...);
 
 typedef struct {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]