arm: linker.ld: Port the CC32xx flash header to zephyr_linker_sources()

Add the .dbghdr sections via its own linker script snippet.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
Øyvind Rønningstad 2019-11-28 17:04:06 +01:00 committed by Anas Nashif
commit b1026da300
4 changed files with 15 additions and 13 deletions

View file

@ -137,12 +137,6 @@ SECTIONS
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
{
#if defined(CONFIG_CC3220SF_DEBUG) || defined(CONFIG_CC3235SF_DEBUG)
/* Add CC32xx flash header to disable flash verification */
. = 0x0;
KEEP(*(.dbghdr))
KEEP(*(".dbghdr.*"))
#endif
. = CONFIG_TEXT_SECTION_OFFSET;

View file

@ -134,13 +134,6 @@ SECTIONS
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
{
#ifdef CONFIG_CC3220SF_DEBUG
/* Add CC3220SF flash header to disable flash verification */
. = 0x0;
KEEP(*(.dbghdr))
KEEP(*(".dbghdr.*"))
#endif
. = CONFIG_TEXT_SECTION_OFFSET;
/* Located in generated directory. This file is populated by the

View file

@ -1,3 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_sources(soc.c)
if (DEFINED CONFIG_CC3220SF_DEBUG OR DEFINED CONFIG_CC3235SF_DEBUG)
zephyr_linker_sources(TEXT_START SORT_KEY 0 cc32xx_debug.ld)
endif()

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2019 Texas Instruments Incorporated
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Add CC32xx flash header to disable flash verification */
. = 0x0;
KEEP(*(.dbghdr))
KEEP(*(".dbghdr.*"))