diff options
author | Luiz Angelo Daros de Luca <luizluca@gmail.com> | 2020-04-27 18:45:44 -0300 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-04-28 07:45:00 +0200 |
commit | a3079fb7ba7ade4d4765252b7c53a82ca15ae741 (patch) | |
tree | 2da787c3b679aee3e98b1846f135310d8efb79b6 /package | |
parent | 76a0ddf1308782a4da2693978955aee9cf631862 (diff) | |
download | upstream-a3079fb7ba7ade4d4765252b7c53a82ca15ae741.tar.gz upstream-a3079fb7ba7ade4d4765252b7c53a82ca15ae741.tar.bz2 upstream-a3079fb7ba7ade4d4765252b7c53a82ca15ae741.zip |
elfutils: powerpc build fix
Fixes following build error on mpc85xx/generic:
ppc_initreg.c: In function 'ppc_set_initial_registers_tid':
ppc_initreg.c:79:22: error: field 'r' has incomplete type
struct pt_regs r;
Ref: FS#2924
Fixes: d27623b54254 ("elfutils: update to 0.179")
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
[commit description facelift]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package')
-rw-r--r-- | package/libs/elfutils/patches/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/package/libs/elfutils/patches/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch b/package/libs/elfutils/patches/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch new file mode 100644 index 0000000000..904da2b44e --- /dev/null +++ b/package/libs/elfutils/patches/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch @@ -0,0 +1,34 @@ +From http://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0001-ppc_initreg.c-Incliude-asm-ptrace.h-for-pt_regs-defi.patch + +From 2e2232d0935bf8ef6e66ebffba3be68a73b5b3e5 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sun, 8 Sep 2019 15:57:59 -0700 +Subject: [PATCH] ppc_initreg.c: Incliude asm/ptrace.h for pt_regs definition + +Fixes +| ../../elfutils-0.176/backends/ppc_initreg.c:79:22: error: field 'r' has incomplete type +| struct pt_regs r; +| ^ + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + backends/ppc_initreg.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c +index 0e0d359..e5cca7e 100644 +--- a/backends/ppc_initreg.c ++++ b/backends/ppc_initreg.c +@@ -33,6 +33,7 @@ + #include <stdlib.h> + #if defined(__powerpc__) && defined(__linux__) + # include <sys/ptrace.h> ++# include <asm/ptrace.h> + # include <sys/user.h> + #endif + +-- +2.23.0 + |