This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Multiple Memory Regions Starting at Same Address
- To: Tracy dot Kuhrt at microchip dot com
- Subject: Re: Multiple Memory Regions Starting at Same Address
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 07 Dec 2000 15:41:23 +1100
- Cc: binutils at sourceware dot cygnus dot com
- References: <OF88E9573D.9570BDCB-ON072569A8.007CA666@microchip.com>
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