Fixes to the LCF file and project.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8519 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2015-11-23 09:41:59 +00:00
parent b7d01278b7
commit 1736a34d19
2 changed files with 10 additions and 8 deletions

View File

@ -22,7 +22,7 @@
*/
MEMORY
{
flash : org = 0x00000000, len = 0x00040000
rom : org = 0x00000000, len = 0x00040000
dataflash : org = 0x00800000, len = 0x00010000
ram : org = 0x40000000, len = 0x00004000
}
@ -36,8 +36,6 @@ __ram_end__ = ADDR(ram) + SIZEOF(ram);
SECTIONS
{
. = ADDR(flash);
GROUP:
{
.boot ALIGN(16):
@ -95,7 +93,9 @@ SECTIONS
extab: {}
extabindex: {}
} > flash
. = ALIGN(4);
__romdata_start__ = .;
} > rom
GROUP:
{
@ -114,14 +114,15 @@ SECTIONS
__main_thread_stack_end__ = .;
}
.data (DATA):
.data (DATA) LOAD(__romdata_start__):
{
. = ALIGN(4);
__data_start__ = .;
*(.data)
. = ALIGN(4);
}
.sdata (DATA):
.sdata (DATA) LOAD(ROMADDR(.data) + SIZEOF(.data)):
{
__sdata_start__ = . + 0x8000;
*(.sdata)
@ -148,7 +149,8 @@ SECTIONS
. = ADDR(ram) + SIZEOF(ram);
__heap_end__ = .;
}
.PPC.EMB.sdata0: {}
.PPC.EMB.sbss0: {}
} > ram
}
__romdata_start__ = _f_data_rom;