More generic ELF generation