elf: initialize segment properly