From ddd96a3fbc7c54146d1d831810fc9e29c9bc3c76 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Thu, 17 May 2012 23:35:26 +0200 Subject: 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. --- ltrace-elf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ltrace-elf.c') 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) -- cgit v1.2.3