This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Multiple Memory Regions Starting at Same Address


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]