perfpd: move resolve_ip to elf.py