Skip to content

Commit

Permalink
Merge pull request #2687 from nvlsianpu/add_fs_data_secton_gcc
Browse files Browse the repository at this point in the history
[NRF5] Add fs_data symbol in data secton for gcc
  • Loading branch information
sg- authored Sep 16, 2016
2 parents 5920896 + 55fbdd1 commit 27c6e25
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ SECTIONS
KEEP(*(.fini_array))
PROVIDE_HIDDEN (__fini_array_end = .);

. = ALIGN(4);
PROVIDE(__start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE(__stop_fs_data = .);

*(.jcr)
. = ALIGN(4);
/* All data end */
Expand All @@ -116,13 +121,6 @@ SECTIONS

__edata = .;

.fs_data :
{
PROVIDE(__start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE(__stop_fs_data = .);
} > RAM

.bss :
{
. = ALIGN(4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ SECTIONS
KEEP(*(SORT(.fini_array.*)))
KEEP(*(.fini_array))
PROVIDE_HIDDEN (__fini_array_end = .);

. = ALIGN(4);
PROVIDE(__start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE(__stop_fs_data = .);

*(.jcr)
. = ALIGN(4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ SECTIONS
KEEP(*(.fini_array))
PROVIDE_HIDDEN (__fini_array_end = .);

. = ALIGN(4);
PROVIDE(__start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE(__stop_fs_data = .);

*(.jcr)
. = ALIGN(4);
/* All data end */
Expand All @@ -135,13 +140,6 @@ SECTIONS

__edata = .;

.fs_data :
{
PROVIDE(__start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE(__stop_fs_data = .);
} > RAM

.bss :
{
. = ALIGN(4);
Expand Down

0 comments on commit 27c6e25

Please sign in to comment.