aboutsummaryrefslogtreecommitdiff
path: root/ltrace-elf.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-05-17 23:35:26 +0200
committerPetr Machata <pmachata@redhat.com>2012-08-29 19:03:17 +0200
commitddd96a3fbc7c54146d1d831810fc9e29c9bc3c76 (patch)
tree7a0c25936e3eba577f52d0acb086e33d856fc674 /ltrace-elf.c
parent2d9be647dd7402402ad3d2d2f114632aba21eaca (diff)
downloadltrace-ddd96a3fbc7c54146d1d831810fc9e29c9bc3c76.tar.gz
Merge i386 and x86_64 back ends into a general x86
The reason being that x86_64 needs to handle i386 anyway, and keeping the two together might reduce code duplicity.
Diffstat (limited to 'ltrace-elf.c')
-rw-r--r--ltrace-elf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ltrace-elf.c b/ltrace-elf.c
index 9b6cf6b..99d06d6 100644
--- a/ltrace-elf.c
+++ b/ltrace-elf.c
@@ -273,8 +273,11 @@ open_elf(struct ltelf *lte, const char *filename)
exit(EXIT_FAILURE);
}
- if ((lte->ehdr.e_ident[EI_CLASS] != LT_ELFCLASS
- || lte->ehdr.e_machine != LT_ELF_MACHINE)
+ if (1
+#ifdef LT_ELF_MACHINE
+ && (lte->ehdr.e_ident[EI_CLASS] != LT_ELFCLASS
+ || lte->ehdr.e_machine != LT_ELF_MACHINE)
+#endif
#ifdef LT_ELF_MACHINE2
&& (lte->ehdr.e_ident[EI_CLASS] != LT_ELFCLASS2
|| lte->ehdr.e_machine != LT_ELF_MACHINE2)