Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
►
dt-bindings
►
fs
►
input
►
internal
►
ipc
►
kernel
▼
linker
►
devicetree_regions.h
►
iterable_sections.h
►
linker-defs.h
linker-devnull.h
►
linker-tool-gcc.h
►
linker-tool-lld.h
►
linker-tool-mwdt.h
linker-tool.h
section_tags.h
sections.h
►
utils.h
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
pmci
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
sections.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013-2014, Wind River Systems, Inc.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
15
#ifndef ZEPHYR_INCLUDE_LINKER_SECTIONS_H_
16
#define ZEPHYR_INCLUDE_LINKER_SECTIONS_H_
17
18
#define _TEXT_SECTION_NAME text
19
#define _RODATA_SECTION_NAME rodata
20
#define _CTOR_SECTION_NAME ctors
21
/* Linker issue with XIP where the name "data" cannot be used */
22
#define _DATA_SECTION_NAME datas
23
#define _BSS_SECTION_NAME bss
24
#define _NOINIT_SECTION_NAME noinit
25
26
#define _APP_SMEM_SECTION_NAME app_smem
27
#define _APP_DATA_SECTION_NAME app_datas
28
#define _APP_BSS_SECTION_NAME app_bss
29
#define _APP_NOINIT_SECTION_NAME app_noinit
30
31
#define _APP_SMEM_PINNED_SECTION_NAME app_smem_pinned
32
33
#define _UNDEFINED_SECTION_NAME undefined
34
35
/* Interrupts */
36
#define _IRQ_VECTOR_TABLE_SECTION_NAME .gnu.linkonce.irq_vector_table
37
#define _IRQ_VECTOR_TABLE_SECTION_SYMS .gnu.linkonce.irq_vector_table*
38
39
#define _SW_ISR_TABLE_SECTION_NAME .gnu.linkonce.sw_isr_table
40
#define _SW_ISR_TABLE_SECTION_SYMS .gnu.linkonce.sw_isr_table*
41
42
#ifdef CONFIG_SHARED_INTERRUPTS
43
#define _SHARED_SW_ISR_TABLE_SECTION_NAME .gnu.linkonce.shared_sw_isr_table
44
#define _SHARED_SW_ISR_TABLE_SECTION_SYMS .gnu.linkonce.shared_sw_isr_table*
45
#endif
/* CONFIG_SHARED_INTERRUPTS */
46
47
/* Architecture-specific sections */
48
#if defined(CONFIG_ARM)
49
#define _KINETIS_FLASH_CONFIG_SECTION_NAME kinetis_flash_config
50
#define _TI_CCFG_SECTION_NAME .ti_ccfg
51
52
#define _CCM_DATA_SECTION_NAME .ccm_data
53
#define _CCM_BSS_SECTION_NAME .ccm_bss
54
#define _CCM_NOINIT_SECTION_NAME .ccm_noinit
55
56
#define _ITCM_SECTION_NAME .itcm
57
58
#define _DTCM_DATA_SECTION_NAME .dtcm_data
59
#define _DTCM_BSS_SECTION_NAME .dtcm_bss
60
#define _DTCM_NOINIT_SECTION_NAME .dtcm_noinit
61
62
#define _OCM_DATA_SECTION_NAME .ocm_data
63
#define _OCM_BSS_SECTION_NAME .ocm_bss
64
#endif
65
66
#define _IMX_BOOT_CONF_SECTION_NAME .boot_hdr.conf
67
#define _IMX_BOOT_DATA_SECTION_NAME .boot_hdr.data
68
#define _IMX_BOOT_IVT_SECTION_NAME .boot_hdr.ivt
69
#define _IMX_BOOT_DCD_SECTION_NAME .boot_hdr.dcd_data
70
#define _IMX_BOOT_CONTAINER_SECTION_NAME .boot_hdr.container
71
72
#define _STM32_SDRAM1_SECTION_NAME .stm32_sdram1
73
#define _STM32_SDRAM2_SECTION_NAME .stm32_sdram2
74
#define _STM32_PSRAM_SECTION_NAME .stm32_psram
75
76
#define _STM32_BACKUP_SRAM_SECTION_NAME .stm32_backup_sram
77
78
#ifdef CONFIG_NOCACHE_MEMORY
79
#define _NOCACHE_SECTION_NAME nocache
80
#endif
81
82
/* Symbol table section */
83
#if defined(CONFIG_SYMTAB)
84
#define _SYMTAB_INFO_SECTION_NAME .gnu.linkonce.symtab.info
85
#define _SYMTAB_ENTRY_SECTION_NAME .gnu.linkonce.symtab.entry
86
#define _SYMTAB_SECTION_SYMS .gnu.linkonce.symtab*
87
#endif
/* CONFIG_SYMTAB */
88
89
#if defined(CONFIG_LINKER_USE_BOOT_SECTION)
90
#define BOOT_TEXT_SECTION_NAME boot_text
91
#define BOOT_BSS_SECTION_NAME boot_bss
92
#define BOOT_RODATA_SECTION_NAME boot_rodata
93
#define BOOT_DATA_SECTION_NAME boot_data
94
#define BOOT_NOINIT_SECTION_NAME boot_noinit
95
#endif
96
97
#if defined(CONFIG_LINKER_USE_PINNED_SECTION)
98
#define PINNED_TEXT_SECTION_NAME pinned_text
99
#define PINNED_BSS_SECTION_NAME pinned_bss
100
#define PINNED_RODATA_SECTION_NAME pinned_rodata
101
#define PINNED_DATA_SECTION_NAME pinned_data
102
#define PINNED_NOINIT_SECTION_NAME pinned_noinit
103
#endif
104
105
#if defined(CONFIG_LINKER_USE_ONDEMAND_SECTION)
106
#define ONDEMAND_TEXT_SECTION_NAME ondemand_text
107
#define ONDEMAND_RODATA_SECTION_NAME ondemand_rodata
108
#endif
109
110
/* Short section references for use in ASM files */
111
#if defined(_ASMLANGUAGE)
112
/* Various text section names */
113
#define TEXT text
114
115
/* Various data type section names */
116
#define BSS bss
117
#define RODATA rodata
118
#define DATA data
119
#define NOINIT noinit
120
121
#if defined(CONFIG_LINKER_USE_BOOT_SECTION)
122
#define BOOT_TEXT BOOT_TEXT_SECTION_NAME
123
#define BOOT_BSS BOOT_BSS_SECTION_NAME
124
#define BOOT_RODATA BOOT_RODATA_SECTION_NAME
125
#define BOOT_DATA BOOT_DATA_SECTION_NAME
126
#define BOOT_NOINIT BOOT_NOINIT_SECTION_NAME
127
#else
128
#define BOOT_TEXT TEXT
129
#define BOOT_BSS BSS
130
#define BOOT_RODATA RODATA
131
#define BOOT_DATA DATA
132
#define BOOT_NOINIT NOINIT
133
#endif
/* CONFIG_LINKER_USE_BOOT_SECTION */
134
135
#if defined(CONFIG_LINKER_USE_PINNED_SECTION)
136
#define PINNED_TEXT PINNED_TEXT_SECTION_NAME
137
#define PINNED_BSS PINNED_BSS_SECTION_NAME
138
#define PINNED_RODATA PINNED_RODATA_SECTION_NAME
139
#define PINNED_DATA PINNED_DATA_SECTION_NAME
140
#define PINNED_NOINIT PINNED_NOINIT_SECTION_NAME
141
#else
142
#define PINNED_TEXT TEXT
143
#define PINNED_BSS BSS
144
#define PINNED_RODATA RODATA
145
#define PINNED_DATA DATA
146
#define PINNED_NOINIT NOINIT
147
#endif
/* CONFIG_LINKER_USE_PINNED_SECTION */
148
149
#if defined(CONFIG_LINKER_USE_ONDEMAND_SECTION)
150
#define ONDEMAND_TEXT ONDEMAND_TEXT_SECTION_NAME
151
#define ONDEMAND_RODATA ONDEMAND_RODATA_SECTION_NAME
152
#else
153
#define ONDEMAND_TEXT TEXT
154
#define ONDEMAND_RODATA RODATA
155
#endif
/* CONFIG_LINKER_USE_ONDEMAND_SECTION */
156
157
#endif
/* _ASMLANGUAGE */
158
159
#include <
zephyr/linker/section_tags.h
>
160
161
#endif
/* ZEPHYR_INCLUDE_LINKER_SECTIONS_H_ */
section_tags.h
zephyr
linker
sections.h
Generated on Mon Apr 28 2025 12:05:41 for Zephyr API Documentation by
1.12.0