Multiple Memory Regions Starting at Same Address
Andrew Cagney
ac131313@cygnus.com
Wed Dec 6 20:51:00 GMT 2000
Tracy.Kuhrt@microchip.com wrote:
>
> I am working on porting binutils for a new machine. This machine has two
> distinct memory regions that both need to start at address 0. Data will
> be placed into one memory region while code will be placed into the other.
> Does the linker currently support multiple memory regions that start at
> the same address but contain different information? If so, how would I go
> about specifying this in a linker script file? If not, are there any
> thoughts on how much work would be required to make this change? I am not
> asking anybody to do this, rather I am asking if there are any thoughts on
> what sort of things I would need to look out for if I were to make this
> change, and if the feeling is that it would require a major rewrite.
Think of this two dimensional address space as a single very large
linear address space. The address data:0x12345678 might have a
canonical representation of 0x012345678 while text:0x12345678 might be
0x112345678.
Andrew
More information about the Binutils
mailing list