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
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

Reply via email to