Hi,
Can crash for Mips be cross compiled? say,compile a mips binary on a x86_64 machine?
Thanks!


Best Regards,
Yu Chen

2015-01-15 3:25 GMT+08:00 Dave Anderson <anderson@redhat.com>:

That was easy...

Queued for crash-7.1.0:

  https://github.com/crash-utility/crash/commit/46de58d06fcae6c68cc95b053b8b5e9a7da81f6b

Thanks,
  Dave


----- Original Message -----
> I've now managed to tested HOST==TARGET MIPS builds of crash (with
> Debian running on top of QEMU's full-system MIPS emulation), and the
> following fix is needed.  The preprocessor macro check for MIPS in
> configure.c is incorrect and should be checking for __mips__, not
> __mipsel___.  This allows native build on both big-endian and
> little-endian MIPS systems.
> ---
>  configure.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.c b/configure.c
> index 800173a..9fe9f81 100644
> --- a/configure.c
> +++ b/configure.c
> @@ -375,7 +375,7 @@ get_current_configuration(struct supported_gdb_version
> *sp)
>  #ifdef __aarch64__
>          target_data.target = ARM64;
>  #endif
> -#ifdef __mipsel___
> +#ifdef __mips__
>          target_data.target = MIPS;
>  #endif
>
> --
> 2.1.4
>
> --
> Crash-utility mailing list
> Crash-utility@redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
>

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility