diff options
author | Petr Machata <pmachata@redhat.com> | 2012-05-17 23:35:26 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-29 19:03:17 +0200 |
commit | ddd96a3fbc7c54146d1d831810fc9e29c9bc3c76 (patch) | |
tree | 7a0c25936e3eba577f52d0acb086e33d856fc674 /ltrace-elf.c | |
parent | 2d9be647dd7402402ad3d2d2f114632aba21eaca (diff) | |
download | ltrace-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.c | 7 |
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) |