2015-04-11 07:44:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2014, Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-12-04 23:09:39 +08:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Definitions of various linker Sections.
|
|
|
|
*
|
2015-10-21 00:42:33 +08:00
|
|
|
* Linker Section declarations used by linker script, C files and Assembly
|
|
|
|
* files.
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
#ifndef _SECTIONS_H
|
|
|
|
#define _SECTIONS_H
|
|
|
|
|
|
|
|
#define _TEXT_SECTION_NAME text
|
|
|
|
#define _RODATA_SECTION_NAME rodata
|
|
|
|
#define _CTOR_SECTION_NAME ctors
|
|
|
|
/* Linker issue with XIP where the name "data" cannot be used */
|
|
|
|
#define _DATA_SECTION_NAME datas
|
|
|
|
#define _BSS_SECTION_NAME bss
|
|
|
|
#define _NOINIT_SECTION_NAME noinit
|
|
|
|
|
2017-06-15 07:08:16 +08:00
|
|
|
#define _APP_DATA_SECTION_NAME app_datas
|
|
|
|
#define _APP_BSS_SECTION_NAME app_bss
|
|
|
|
#define _APP_NOINIT_SECTION_NAME app_noinit
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#define _UNDEFINED_SECTION_NAME undefined
|
|
|
|
|
|
|
|
/* Various text section names */
|
|
|
|
#define TEXT text
|
2015-10-09 18:20:52 +08:00
|
|
|
#if defined(CONFIG_X86)
|
2015-04-11 07:44:37 +08:00
|
|
|
#define TEXT_START text_start /* beginning of TEXT section */
|
|
|
|
#else
|
|
|
|
#define TEXT_START text /* beginning of TEXT section */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Various data type section names */
|
|
|
|
#define BSS bss
|
|
|
|
#define RODATA rodata
|
|
|
|
#define DATA data
|
|
|
|
#define NOINIT noinit
|
|
|
|
|
2017-02-09 09:40:50 +08:00
|
|
|
/* Interrupts */
|
2017-02-09 09:16:29 +08:00
|
|
|
#define IRQ_VECTOR_TABLE .gnu.linkonce.irq_vector_table
|
|
|
|
#define SW_ISR_TABLE .gnu.linkonce.sw_isr_table
|
2017-02-09 09:40:50 +08:00
|
|
|
|
2017-02-09 09:16:29 +08:00
|
|
|
/* Architecture-specific sections */
|
2015-06-06 10:27:08 +08:00
|
|
|
#if defined(CONFIG_ARM)
|
2017-01-22 01:17:59 +08:00
|
|
|
#define KINETIS_FLASH_CONFIG kinetis_flash_config
|
2017-06-15 20:05:45 +08:00
|
|
|
#define TI_CCFG .ti_ccfg
|
2017-10-05 07:20:21 +08:00
|
|
|
|
|
|
|
#define _CCM_DATA_SECTION_NAME ccm_data
|
|
|
|
#define _CCM_BSS_SECTION_NAME ccm_bss
|
|
|
|
#define _CCM_NOINIT_SECTION_NAME ccm_noinit
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#endif
|
|
|
|
|
2017-06-17 23:30:47 +08:00
|
|
|
#include <linker/section_tags.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
#endif /* _SECTIONS_H */
|