Only sort .text for nrf

This commit is contained in:
Scott Shawcroft 2021-09-01 08:57:18 -07:00
parent 0cffa6be81
commit 9c4c3e1780
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -73,32 +73,32 @@ SECTIONS
_etext = .; /* define a global symbol at end of code */
} >FLASH_FIRMWARE
/* used by the startup to initialize data */
_sidata = .;
/* This is the initialized data section
The program executes knowing that the data is in the RAM
but the loader puts the initial values in the FLASH (inidata).
It is one task of the startup to copy the initial values from FLASH to RAM. */
.data : AT (_sidata)
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
_ram_start = .; /* create a global symbol at ram start for garbage collector */
*SORT_BY_ALIGNMENT(SORT_BY_NAME(.data)) /* .data sections */
*SORT_BY_ALIGNMENT(SORT_BY_NAME(.data*)) /* .data* sections */
*(.data) /* .data sections */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
} >APP_RAM
} >APP_RAM AT > FLASH_FIRMWARE
/* used by the startup to initialize data */
_sidata = LOADADDR(.data);
/* Zero-initialized data section */
.bss :
{
. = ALIGN(4);
_sbss = .; /* define a global symbol at bss start; used by startup code */
*SORT_BY_ALIGNMENT(SORT_BY_NAME(.bss))
*SORT_BY_ALIGNMENT(SORT_BY_NAME(.bss*))
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);