elfutils: update to 0.179
Removed sys/cdefs usage. The header is deprecated. Removed canonicalize_file_name define. It's already fixed upstream. Added --disable-debuginfod. Seems to be needed. Modified patch 005 to build more stuff. It was failing before. It still only builds libraries. Modified patch 100 to use strerror under non-glibc. It is used under glibc as strerror is not thread safe. It is under musl and uClibc-ng. strerror_l is not available under uClibc-ng. Signed-off-by: Rosen Penev <rosenp@gmail.com>master
parent
76d22fc24b
commit
d27623b542
@ -1,12 +1,11 @@
|
|||||||
--- a/Makefile.am
|
--- a/Makefile.am
|
||||||
+++ b/Makefile.am
|
+++ b/Makefile.am
|
||||||
@@ -27,8 +27,7 @@ AM_MAKEFLAGS = --no-print-directory
|
@@ -27,7 +27,7 @@ AM_MAKEFLAGS = --no-print-directory
|
||||||
pkginclude_HEADERS = version.h
|
pkginclude_HEADERS = version.h
|
||||||
|
|
||||||
# Add doc back when we have some real content.
|
SUBDIRS = config m4 lib libelf libcpu backends libebl libdwelf libdwfl libdw \
|
||||||
-SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
|
- libasm src po doc tests
|
||||||
- backends src po tests
|
+ libasm
|
||||||
+SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libasm
|
|
||||||
|
|
||||||
EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
|
if DEBUGINFOD
|
||||||
COPYING COPYING-GPLV2 COPYING-LGPLV3
|
SUBDIRS += debuginfod
|
||||||
|
@ -0,0 +1,51 @@
|
|||||||
|
From e399540ab67ffe83ca3c4cb768a2f0f2f32a9057 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Rosen Penev <rosenp@gmail.com>
|
||||||
|
Date: Sun, 5 Apr 2020 15:56:59 -0700
|
||||||
|
Subject: [PATCH] libelf: remove usage of sys/cdefs
|
||||||
|
|
||||||
|
sys/cdefs is a deprecated glibc header that is unavailable with other
|
||||||
|
libc implementations such as musl.
|
||||||
|
|
||||||
|
features.h under glibc includes sys/cdefs whereas it does not under musl.
|
||||||
|
|
||||||
|
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
||||||
|
---
|
||||||
|
lib/fixedsizehash.h | 1 -
|
||||||
|
libelf/elf.h | 10 ++++++----
|
||||||
|
2 files changed, 6 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
--- a/lib/fixedsizehash.h
|
||||||
|
+++ b/lib/fixedsizehash.h
|
||||||
|
@@ -30,7 +30,6 @@
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
-#include <sys/cdefs.h>
|
||||||
|
|
||||||
|
#include <system.h>
|
||||||
|
|
||||||
|
--- a/libelf/elf.h
|
||||||
|
+++ b/libelf/elf.h
|
||||||
|
@@ -19,9 +19,9 @@
|
||||||
|
#ifndef _ELF_H
|
||||||
|
#define _ELF_H 1
|
||||||
|
|
||||||
|
-#include <features.h>
|
||||||
|
-
|
||||||
|
-__BEGIN_DECLS
|
||||||
|
+#ifdef __cplusplus
|
||||||
|
+extern "C" {
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/* Standard ELF types. */
|
||||||
|
|
||||||
|
@@ -4007,6 +4007,8 @@ enum
|
||||||
|
#define R_NDS32_TLS_TPOFF 102
|
||||||
|
#define R_NDS32_TLS_DESC 119
|
||||||
|
|
||||||
|
-__END_DECLS
|
||||||
|
+#ifdef __cplusplus
|
||||||
|
+}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#endif /* elf.h */
|
Loading…
Reference in New Issue