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]

Re: reserving LMA space in linker script


Hi Darin,

I can solve this by allocating a large enough space, but I don't
want to leave holes in memory.  Is there any other way to get
this sort of thing done?

Does the region for the duplicated .data section have to occur before .data in memory ? If it can occur afterwards then you should be able to use your original linker script like this:


    .data : AT(_data_load) { *(.data) } > ram
    . = ALIGN(4);
    _data_load = .
    . += SIZEOF(.data);

Note - you will probably want to define a couple of symbols to hold the start and end addresses of your hole.

Cheers
  Nick


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