[Object][ELF] Fix -Wenum-compare.