summaryrefslogtreecommitdiff
path: root/arch/arm/soc/nxp_kinetis/k6x/linker.ld
blob: a7fbabf8157ddbfabaae3fb2a1040d95f0058417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2014 Wind River Systems, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @file
 * @brief Linker command/script file
 *
 * This is the linker script for both standard images and XIP images.
 */

#include <autoconf.h>

/*
 * K64F Flash configuration fields
 * These are 16 bytes, which must be loaded to address 0x400, and include
 * default protection and security settings.
 * They are loaded at reset to various Flash Memory module (FTFE) registers.
 */

/*
 * No need to account for this when running a RAM-only image since that
 * security feature resides in ROM.
 */
#if defined(CONFIG_XIP)
	#define SKIP_TO_SECURITY_FRDM_K64F . = 0x400;
#endif

#include <arch/arm/cortex_m/scripts/linker.ld>