Canary detection for ELF

Related to #818