Iterate over all segment types when detecting static allocated objects in rta.