lpc43xx: Update linker scripts
This commit is contained in:
parent
fa9fa986df
commit
26162762b7
|
@ -92,6 +92,7 @@ SECTIONS
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_edata = .;
|
_edata = .;
|
||||||
} >ram_local2 AT >rom
|
} >ram_local2 AT >rom
|
||||||
|
_data_loadaddr = LOADADDR(.data);
|
||||||
|
|
||||||
_data_rom = LOADADDR (.data) + ORIGIN(rom);
|
_data_rom = LOADADDR (.data) + ORIGIN(rom);
|
||||||
_edata_rom = _data_rom + SIZEOF (.data);
|
_edata_rom = _data_rom + SIZEOF (.data);
|
||||||
|
|
|
@ -45,13 +45,46 @@ SECTIONS
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >ram_local1
|
} >ram_local1
|
||||||
|
|
||||||
|
/* C++ Static constructors/destructors, also used for __attribute__
|
||||||
|
* ((constructor)) and the likes */
|
||||||
|
.preinit_array : {
|
||||||
|
. = ALIGN(4);
|
||||||
|
__preinit_array_start = .;
|
||||||
|
KEEP (*(.preinit_array))
|
||||||
|
__preinit_array_end = .;
|
||||||
|
} >ram_local1
|
||||||
|
.init_array : {
|
||||||
|
. = ALIGN(4);
|
||||||
|
__init_array_start = .;
|
||||||
|
KEEP (*(SORT(.init_array.*)))
|
||||||
|
KEEP (*(.init_array))
|
||||||
|
__init_array_end = .;
|
||||||
|
} >ram_local1
|
||||||
|
.fini_array : {
|
||||||
|
. = ALIGN(4);
|
||||||
|
__fini_array_start = .;
|
||||||
|
KEEP (*(.fini_array))
|
||||||
|
KEEP (*(SORT(.fini_array.*)))
|
||||||
|
__fini_array_end = .;
|
||||||
|
} >ram_local1
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Another section used by C++ stuff, appears when using newlib with
|
||||||
|
* 64bit (long long) printf support
|
||||||
|
*/
|
||||||
|
.ARM.extab : {
|
||||||
|
*(.ARM.extab*)
|
||||||
|
} >.ram_local1
|
||||||
|
|
||||||
/* exception index - required due to libgcc.a issuing /0 exceptions */
|
/* exception index - required due to libgcc.a issuing /0 exceptions */
|
||||||
__exidx_start = .;
|
__exidx_start = .;
|
||||||
.ARM.exidx : {
|
.ARM.exidx : {
|
||||||
|
__exidx_start = .;
|
||||||
*(.ARM.exidx*)
|
*(.ARM.exidx*)
|
||||||
} > ram_local1
|
|
||||||
__exidx_end = .;
|
__exidx_end = .;
|
||||||
|
} > ram_local1
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
_etext_ram = 0; /* Start of Code in RAM NULL because Copy of Code from ROM to RAM disabled */
|
_etext_ram = 0; /* Start of Code in RAM NULL because Copy of Code from ROM to RAM disabled */
|
||||||
_etext_rom = 0; /* Start of Code in RAM NULL because Copy of Code from ROM to RAM disabled */
|
_etext_rom = 0; /* Start of Code in RAM NULL because Copy of Code from ROM to RAM disabled */
|
||||||
|
@ -59,9 +92,12 @@ SECTIONS
|
||||||
. = ORIGIN(ram_local2);
|
. = ORIGIN(ram_local2);
|
||||||
|
|
||||||
.data : {
|
.data : {
|
||||||
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
_edata = .;
|
||||||
} >ram_local2
|
} >ram_local2
|
||||||
|
_data_loadaddr = LOADADDR(.data);
|
||||||
|
|
||||||
/* Running from RAM only, loading the .elf will initialize data for us. */
|
/* Running from RAM only, loading the .elf will initialize data for us. */
|
||||||
_data_rom = .;
|
_data_rom = .;
|
||||||
|
|
Loading…
Reference in New Issue