From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8241761921430046040==" MIME-Version: 1.0 From: Jose E. Marchesi To: elfutils-devel@lists.fedorahosted.org Subject: [PATCH] sparc: restore 32-bit build. Date: Fri, 26 Feb 2016 10:30:30 -0800 Message-ID: <1456511430-15543-1-git-send-email-jose.marchesi@oracle.com> --===============8241761921430046040== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This patch provides a dummy sparc_set_initial_registers-tid for sparc32. This fixes the build in sparcv9-*-* targets. Signed-off-by: Jose E. Marchesi --- backends/ChangeLog | 6 ++++++ backends/sparc_initreg.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backends/ChangeLog b/backends/ChangeLog index d222266..d1cd5ea 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,9 @@ +2016-02-26 Jose E. Marchesi + + * sparc_initreg.c (EBLHOOK): Provide a dummy + sparc_set_initial_registers_tid for sparc32. This fixes the build + in sparcv9-*-* targets. + 2015-12-28 Mark Wielaard = * i386_reloc.def: Add GOT32X. diff --git a/backends/sparc_initreg.c b/backends/sparc_initreg.c index c2a9b32..c4b321c 100644 --- a/backends/sparc_initreg.c +++ b/backends/sparc_initreg.c @@ -45,7 +45,7 @@ EBLHOOK (set_initial_registers_tid) (pid_t tid __attribut= e__ ((unused)), ebl_tid_registers_t *setfunc __attrib= ute__ ((unused)), void *arg __attribute__ ((unused))) { -#ifndef __sparc__ +#if !defined(__sparc__) || !defined( __arch64__) return false; #else /* __sparc__ */ = -- = 2.3.4 --===============8241761921430046040==--