seg IDs and entry function mapping