Skip to content

Commit 27c6e25

Browse files
authored
Merge pull request #2687 from nvlsianpu/add_fs_data_secton_gcc
[NRF5] Add fs_data symbol in data secton for gcc
2 parents 5920896 + 55fbdd1 commit 27c6e25

File tree

3 files changed

+15
-14
lines changed
  • hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5

3 files changed

+15
-14
lines changed

hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ SECTIONS
107107
KEEP(*(.fini_array))
108108
PROVIDE_HIDDEN (__fini_array_end = .);
109109

110+
. = ALIGN(4);
111+
PROVIDE(__start_fs_data = .);
112+
KEEP(*(.fs_data))
113+
PROVIDE(__stop_fs_data = .);
114+
110115
*(.jcr)
111116
. = ALIGN(4);
112117
/* All data end */
@@ -116,13 +121,6 @@ SECTIONS
116121

117122
__edata = .;
118123

119-
.fs_data :
120-
{
121-
PROVIDE(__start_fs_data = .);
122-
KEEP(*(.fs_data))
123-
PROVIDE(__stop_fs_data = .);
124-
} > RAM
125-
126124
.bss :
127125
{
128126
. = ALIGN(4);

hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ SECTIONS
106106
KEEP(*(SORT(.fini_array.*)))
107107
KEEP(*(.fini_array))
108108
PROVIDE_HIDDEN (__fini_array_end = .);
109+
110+
. = ALIGN(4);
111+
PROVIDE(__start_fs_data = .);
112+
KEEP(*(.fs_data))
113+
PROVIDE(__stop_fs_data = .);
109114

110115
*(.jcr)
111116
. = ALIGN(4);

hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/NRF52832.ld

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ SECTIONS
126126
KEEP(*(.fini_array))
127127
PROVIDE_HIDDEN (__fini_array_end = .);
128128

129+
. = ALIGN(4);
130+
PROVIDE(__start_fs_data = .);
131+
KEEP(*(.fs_data))
132+
PROVIDE(__stop_fs_data = .);
133+
129134
*(.jcr)
130135
. = ALIGN(4);
131136
/* All data end */
@@ -135,13 +140,6 @@ SECTIONS
135140

136141
__edata = .;
137142

138-
.fs_data :
139-
{
140-
PROVIDE(__start_fs_data = .);
141-
KEEP(*(.fs_data))
142-
PROVIDE(__stop_fs_data = .);
143-
} > RAM
144-
145143
.bss :
146144
{
147145
. = ALIGN(4);

0 commit comments

Comments
 (0)