Skip to content

Commit

Permalink
Include .data in FLASH_TEXT size limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
aykevl committed Jan 14, 2018
1 parent 64cb8f8 commit 6e56e62
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ports/nrf/dfu/common.ld
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,23 @@ SECTIONS
_etext = .; /* define a global symbol at end of code */
} >FLASH_TEXT


/* used by the startup to initialize data */
_sidata = .;
_sidata = LOADADDR(.data);

/* 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 */
*(.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 */
} >RAM
} >RAM AT>FLASH_TEXT

/* Uninitialized data section */
.bss :
Expand Down

0 comments on commit 6e56e62

Please sign in to comment.