From 5d4e558279df4139ec100ae76514178ce0d890fe Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 16 Jun 2016 18:40:21 -0400 Subject: [PATCH] binutils: Fix x86-64 build --- .../binutils/bfd-hosts-x86-64linux.h.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/binutils/bfd-hosts-x86-64linux.h.patch diff --git a/packages/binutils/bfd-hosts-x86-64linux.h.patch b/packages/binutils/bfd-hosts-x86-64linux.h.patch new file mode 100644 index 000000000..e195e5e47 --- /dev/null +++ b/packages/binutils/bfd-hosts-x86-64linux.h.patch @@ -0,0 +1,19 @@ +diff -u -r ../binutils-2.26/bfd/hosts/x86-64linux.h ./bfd/hosts/x86-64linux.h +--- ../binutils-2.26/bfd/hosts/x86-64linux.h 2015-11-13 03:27:40.000000000 -0500 ++++ ./bfd/hosts/x86-64linux.h 2016-06-16 17:27:10.497607224 -0400 +@@ -32,6 +32,15 @@ + /* We define here only the symbols differing from their 64-bit variant. */ + #include + ++#ifdef __ANDROID__ ++struct elf_siginfo { ++ int si_signo; ++ int si_code; ++ int si_errno; ++}; ++#define ELF_PRARGSZ (80) ++#endif ++ + #ifdef HAVE_STDINT_H + #include + #else