Skip to content

Commit 9742211

Browse files
dcpleungnashif
authored andcommitted
linker: remove APP_SMEM_SECTION() macro
Using this actually would result in a linker input section being put between output sections which is not correct syntax. We have never seen this simply because the generated ones would be included instead of the in-tree ones. So remove this just in case, instead of linker errors. Signed-off-by: Daniel Leung <[email protected]>
1 parent 28c3512 commit 9742211

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

include/linker/app_smem_aligned.ld

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

3-
/* space holder */
4-
APP_SMEM_SECTION()
3+
/* Empty file */
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

3-
/* space holder */
4-
APP_SMEM_SECTION()
3+
/* Empty file */

include/linker/linker-defs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@
124124
* their shell commands are automatically initialized by the kernel.
125125
*/
126126

127-
#define APP_SMEM_SECTION() KEEP(*(SORT("data_smem_*")))
128-
129127
#elif defined(_ASMLANGUAGE)
130128

131129
/* Assembly FILES: declaration defined by the linker script */

0 commit comments

Comments
 (0)