x86: use IS_ELF

... instead of (inefficiently) open-coding it.
2 files changed