lpc43xx: Fix rom_to_ram linker script

It was missing some definitions compared to the libopencm3_lpc43xx.ld.
This commit is contained in:
Ben Gamari 2013-07-07 18:22:56 -04:00
parent 8769073266
commit d7fdcefbd7

View File

@ -74,7 +74,7 @@ SECTIONS
.ARM.extab : { .ARM.extab : {
*(.ARM.extab*) *(.ARM.extab*)
} >rom } >rom
/* exception index - required due to libgcc.a issuing /0 exceptions */ /* exception index - required due to libgcc.a issuing /0 exceptions */
.ARM.exidx : { .ARM.exidx : {
__exidx_start = .; __exidx_start = .;
@ -87,12 +87,15 @@ SECTIONS
_etext_ram = (. - ORIGIN(rom)) + ORIGIN(ram_local1); _etext_ram = (. - ORIGIN(rom)) + ORIGIN(ram_local1);
_etext_rom = (. - ORIGIN(rom)) + ORIGIN(rom_flash); _etext_rom = (. - ORIGIN(rom)) + ORIGIN(rom_flash);
. = ORIGIN(ram_local2);
.data : { .data : {
_data = .; _data = .;
*(.data*) /* Read-write initialized data */ *(.data*) /* Read-write initialized data */
. = ALIGN(4); . = ALIGN(4);
_edata = .; _edata = .;
} >ram_local2 AT >rom } >ram_local2 AT >rom
_data_loadaddr = LOADADDR(.data);
_data_rom = LOADADDR (.data) + ORIGIN(rom_flash); _data_rom = LOADADDR (.data) + ORIGIN(rom_flash);
_edata_rom = _data_rom + SIZEOF (.data); _edata_rom = _data_rom + SIZEOF (.data);