This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] sparc: restore 32-bit build.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 26 Feb 2016 20:49:30 +0100
- Subject: Re: [PATCH] sparc: restore 32-bit build.
On Fri, 2016-02-26 at 10:30 -0800, Jose E. Marchesi wrote:
> This patch provides a dummy sparc_set_initial_registers-tid for
> sparc32. This fixes the build in sparcv9-*-* targets.
[...]
> 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 __attribute__ ((unused)),
> ebl_tid_registers_t *setfunc __attribute__ ((unused)),
> void *arg __attribute__ ((unused)))
> {
> -#ifndef __sparc__
> +#if !defined(__sparc__) || !defined( __arch64__)
> return false;
> #else /* __sparc__ */
Really __arch64__?