elf: implement phdr handling
spring: get rid of unneeded segments