elf reading from binary stream