1 |
commit: 281a8eb89671ac1416ea8c6c3af6f0494af26677 |
2 |
Author: Gowtham Kudupudi <gowtham <AT> ferryfair <DOT> com> |
3 |
AuthorDate: Fri Nov 15 17:13:50 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 18 15:43:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=281a8eb8 |
7 |
|
8 |
dev-libs/elfutils: explicit type cast |
9 |
|
10 |
Signed-off-by: Gowtham Kudupudi <gowtham <AT> ferryfair.com> |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
dev-libs/elfutils/elfutils-0.176-r1.ebuild | 1 + |
14 |
dev-libs/elfutils/elfutils-0.177.ebuild | 3 +- |
15 |
.../files/elfutils-0.176-dwarf_fregs.patch | 36 ++++++++++++++++++++++ |
16 |
3 files changed, 39 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-libs/elfutils/elfutils-0.176-r1.ebuild b/dev-libs/elfutils/elfutils-0.176-r1.ebuild |
19 |
index a150b07..348a2c6 100644 |
20 |
--- a/dev-libs/elfutils/elfutils-0.176-r1.ebuild |
21 |
+++ b/dev-libs/elfutils/elfutils-0.176-r1.ebuild |
22 |
@@ -32,6 +32,7 @@ PATCHES=( |
23 |
"${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch |
24 |
"${FILESDIR}"/${PN}-0.173-reorder.patch |
25 |
"${FILESDIR}"/${PN}-0.176-portability-fixes.patch |
26 |
+ "${FILESDIR}"/${PN}-0.176-dwarf_fregs.patch |
27 |
) |
28 |
|
29 |
src_prepare() { |
30 |
|
31 |
diff --git a/dev-libs/elfutils/elfutils-0.177.ebuild b/dev-libs/elfutils/elfutils-0.177.ebuild |
32 |
index 4431298..9da2726 100644 |
33 |
--- a/dev-libs/elfutils/elfutils-0.177.ebuild |
34 |
+++ b/dev-libs/elfutils/elfutils-0.177.ebuild |
35 |
@@ -30,7 +30,8 @@ DEPEND="${RDEPEND} |
36 |
PATCHES=( |
37 |
"${FILESDIR}"/${PN}-0.118-PaX-support.patch |
38 |
"${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch |
39 |
- "${FILESDIR}"/${PN}-0.177-disable-large.patch |
40 |
+ "${FILESDIR}"/${PN}-0.176-dwarf_fregs.patch |
41 |
+ "${FILESDIR}"/${PN}-0.177-disable-large.patch |
42 |
"${FILESDIR}"/${PN}-0.177-portability-fixes.patch |
43 |
) |
44 |
|
45 |
|
46 |
diff --git a/dev-libs/elfutils/files/elfutils-0.176-dwarf_fregs.patch b/dev-libs/elfutils/files/elfutils-0.176-dwarf_fregs.patch |
47 |
new file mode 100644 |
48 |
index 0000000..3a4204c |
49 |
--- /dev/null |
50 |
+++ b/dev-libs/elfutils/files/elfutils-0.176-dwarf_fregs.patch |
51 |
@@ -0,0 +1,36 @@ |
52 |
+diff --git a/backends/aarch64_initreg.c b/backends/aarch64_initreg.c |
53 |
+index daf6f37..6445276 100644 |
54 |
+--- a/backends/aarch64_initreg.c |
55 |
++++ b/backends/aarch64_initreg.c |
56 |
+@@ -33,7 +33,7 @@ |
57 |
+ #include "system.h" |
58 |
+ #include <assert.h> |
59 |
+ #if defined(__aarch64__) && defined(__linux__) |
60 |
+-# include <linux/uio.h> |
61 |
++# include <sys/uio.h> |
62 |
+ # include <sys/user.h> |
63 |
+ # include <sys/ptrace.h> |
64 |
+ /* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */ |
65 |
+@@ -82,7 +82,7 @@ aarch64_set_initial_registers_tid (pid_t tid __attribute__ ((unused)), |
66 |
+ |
67 |
+ Dwarf_Word dwarf_fregs[32]; |
68 |
+ for (int r = 0; r < 32; r++) |
69 |
+- dwarf_fregs[r] = fregs.vregs[r] & 0xFFFFFFFF; |
70 |
++ dwarf_fregs[r] = (unsigned int)fregs.vregs[r] & 0xFFFFFFFF; |
71 |
+ |
72 |
+ if (! setfunc (64, 32, dwarf_fregs, arg)) |
73 |
+ return false; |
74 |
+diff --git a/backends/arm_initreg.c b/backends/arm_initreg.c |
75 |
+index efcabaf..062bb9e 100644 |
76 |
+--- a/backends/arm_initreg.c |
77 |
++++ b/backends/arm_initreg.c |
78 |
+@@ -38,7 +38,7 @@ |
79 |
+ #endif |
80 |
+ |
81 |
+ #ifdef __aarch64__ |
82 |
+-# include <linux/uio.h> |
83 |
++# include <sys/uio.h> |
84 |
+ # include <sys/user.h> |
85 |
+ # include <sys/ptrace.h> |
86 |
+ /* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */ |
87 |
+ |
88 |
\ No newline at end of file |