RTEMS 6.1-rc1
linker-symbols.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (C) 2010, 2016 embedded brains GmbH & Co. KG
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#ifndef LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H
37#define LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H
38
40
41#ifdef __cplusplus
42extern "C" {
43#endif /* __cplusplus */
44
55LINKER_SYMBOL(bsp_section_start_begin)
56LINKER_SYMBOL(bsp_section_start_end)
57LINKER_SYMBOL(bsp_section_start_size)
58
59LINKER_SYMBOL(bsp_section_fast_text_begin)
60LINKER_SYMBOL(bsp_section_fast_text_end)
61LINKER_SYMBOL(bsp_section_fast_text_size)
62LINKER_SYMBOL(bsp_section_fast_text_load_begin)
63LINKER_SYMBOL(bsp_section_fast_text_load_end)
64
65LINKER_SYMBOL(bsp_section_text_begin)
66LINKER_SYMBOL(bsp_section_text_end)
67LINKER_SYMBOL(bsp_section_text_size)
68LINKER_SYMBOL(bsp_section_text_load_begin)
69LINKER_SYMBOL(bsp_section_text_load_end)
70
71LINKER_SYMBOL(bsp_section_rodata_begin)
72LINKER_SYMBOL(bsp_section_rodata_end)
73LINKER_SYMBOL(bsp_section_rodata_size)
74LINKER_SYMBOL(bsp_section_rodata_load_begin)
75LINKER_SYMBOL(bsp_section_rodata_load_end)
76
77LINKER_SYMBOL(bsp_section_fast_data_begin)
78LINKER_SYMBOL(bsp_section_fast_data_end)
79LINKER_SYMBOL(bsp_section_fast_data_size)
80LINKER_SYMBOL(bsp_section_fast_data_load_begin)
81LINKER_SYMBOL(bsp_section_fast_data_load_end)
82
83LINKER_SYMBOL(bsp_section_data_begin)
84LINKER_SYMBOL(bsp_section_data_end)
85LINKER_SYMBOL(bsp_section_data_size)
86LINKER_SYMBOL(bsp_section_data_load_begin)
87LINKER_SYMBOL(bsp_section_data_load_end)
88
89LINKER_SYMBOL(bsp_section_bss_begin)
90LINKER_SYMBOL(bsp_section_bss_end)
91LINKER_SYMBOL(bsp_section_bss_size)
92
93LINKER_SYMBOL(bsp_section_sdata_begin)
94LINKER_SYMBOL(bsp_section_sdata_end)
95LINKER_SYMBOL(bsp_section_sdata_size)
96
97LINKER_SYMBOL(bsp_section_sbss_begin)
98LINKER_SYMBOL(bsp_section_sbss_end)
99LINKER_SYMBOL(bsp_section_sbss_size)
100
101LINKER_SYMBOL(bsp_section_sdata_libdl_begin)
102LINKER_SYMBOL(bsp_section_sdata_libdl_end)
103LINKER_SYMBOL(bsp_section_sdata_libdl_size)
104
105LINKER_SYMBOL(bsp_section_rtemsstack_begin)
106LINKER_SYMBOL(bsp_section_rtemsstack_end)
107LINKER_SYMBOL(bsp_section_rtemsstack_size)
108
109LINKER_SYMBOL(bsp_section_noinit_begin)
110LINKER_SYMBOL(bsp_section_noinit_end)
111LINKER_SYMBOL(bsp_section_noinit_size)
112
113LINKER_SYMBOL(bsp_section_work_begin)
114LINKER_SYMBOL(bsp_section_work_end)
115LINKER_SYMBOL(bsp_section_work_size)
116
117LINKER_SYMBOL(bsp_section_stack_begin)
118LINKER_SYMBOL(bsp_section_stack_end)
119LINKER_SYMBOL(bsp_section_stack_size)
120
121LINKER_SYMBOL(bsp_section_nocache_begin)
122LINKER_SYMBOL(bsp_section_nocache_end)
123LINKER_SYMBOL(bsp_section_nocache_size)
124LINKER_SYMBOL(bsp_section_nocache_load_begin)
125LINKER_SYMBOL(bsp_section_nocache_load_end)
126
127LINKER_SYMBOL(bsp_section_nocachenoload_begin)
128LINKER_SYMBOL(bsp_section_nocachenoload_end)
129LINKER_SYMBOL(bsp_section_nocachenoload_size)
130
131LINKER_SYMBOL(bsp_section_nocacheheap_begin)
132LINKER_SYMBOL(bsp_section_nocacheheap_end)
133LINKER_SYMBOL(bsp_section_nocacheheap_size)
134
135LINKER_SYMBOL(bsp_section_nvram_begin)
136LINKER_SYMBOL(bsp_section_nvram_end)
137LINKER_SYMBOL(bsp_section_nvram_size)
138
139#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text")))
140
141#define BSP_FAST_DATA_SECTION __attribute__((section(".bsp_fast_data")))
142
143#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache")))
144
145#define BSP_NOCACHE_SUBSECTION(subsection) \
146 __attribute__((section(".bsp_nocache." # subsection)))
147
148#define BSP_NOCACHENOLOAD_SECTION __attribute__((section(".bsp_noload_nocache")))
149
150#define BSP_NOCACHENOLOAD_SUBSECTION(subsection) \
151 __attribute__((section(".bsp_noload_nocache." # subsection)))
152
153#define BSP_NVRAM_SECTION __attribute__((section(".bsp_nvram")))
154
155#define BSP_NVRAM_SUBSECTION(subsection) \
156 __attribute__((section(".bsp_nvram." # subsection)))
157
160#ifdef __cplusplus
161}
162#endif /* __cplusplus */
163
164#endif /* LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H */
General purpose assembler macros, linker command file support and some inline functions for direct re...