reserving LMA space in linker script
Nick Clifton
nickc@redhat.com
Thu Jul 7 11:26:00 GMT 2005
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
More information about the Binutils
mailing list