Fix Linker bug copy ROM to RAM & exec from RAM (need more test).

This commit is contained in:
TitanMKD
2012-06-13 01:05:49 +02:00
parent da27adcf1c
commit c65ca01044
4 changed files with 11 additions and 7 deletions

View File

@@ -56,26 +56,26 @@ SECTIONS
_etext_ram = . + ORIGIN(ram);
_etext_rom = . + ORIGIN(rom_flash);
. = ORIGIN(ram);
.data : {
_data = .;
*(.data*) /* Read-write initialized data */
. = ALIGN(4);
_edata = .;
} >ram AT >rom
} >ram_data AT >rom
.bss : {
. = _edata;
*(.bss*) /* Read-write zero initialized data */
*(COMMON)
. = ALIGN(4);
_ebss = .;
} >ram
} >ram_data
/* exception unwind data - required due to libgcc.a issuing /0 exceptions */
.ARM.extab : {
. = _ebss;
*(.ARM.extab*)
} >ram
} >ram_data
/*
* The .eh_frame section appears to be used for C++ exception handling.