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]
Other format: [Raw text]

allocating to different banks


Hi
I was wondering if some one can tell me the linker script changes I would need to support multiple banks.


I was thinking of changes like this

1. Defining the memory configuration

MEMORY
{
  bankD   : ORIGIN = 0x00000000, LENGTH = 262144
  bank0   : ORIGIN = 0x00080000, LENGTH = 100000
  bank1   : ORIGIN = 0x000A0000, LENGTH = 131072
  bank2   : ORIGIN = 0x00060000, LENGTH = 131072
}

2. Defining sections like below

  bank0 :
 {
    *(bank0)
 } >bank0
 bank1 :
 {
    *(bank1)
 } >bank1
 bank2 :
 {
    *(bank2)
 } >bank2



Modifying the assembly file to include the following directive for each variable.
for example
.section bank0



Can some body point me whats wrong in this ?



thanks -SUmesh

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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