[Bug 23797]: [Shadow] Make ReSpec handle all local definitions and linking.