ELF parsing in java