In one embodiment a method for handling shadow or overlay memories is described
wherein a linker contains a description of the memory of a target embedded system
so that each memory space is described for each state of the control devices. The
linker in one embodiment contains the shadow memory configuration information so
that post linker tools such as loaders and debuggers can utilize this information.
The information for each configuration includes how to get the device into the
state that makes each configuration visible in address space, how to get the device
back into the state it was in before the state was changed and how to find out
the state the device is in.