source: rtems/c/src/lib/libbsp/arm/shared/include/linker-symbols.h @ 296c74e6

4.11
Last change on this file since 296c74e6 was 296c74e6, checked in by Daniel Ramirez <javamonn@…>, on Dec 9, 2013 at 7:37:48 PM

doxygen: refactored doxygen in libbsp to illustrate new rule set

  • Property mode set to 100644
File size: 3.6 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_linker
5 *
6 * @brief Symbols defined in linker command base file.
7 */
8
9/*
10 * Copyright (c) 2008-2013 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Dornierstr. 4
14 *  82178 Puchheim
15 *  Germany
16 *  <info@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23#ifndef LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H
24#define LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif /* __cplusplus */
29
30/**
31 * @defgroup arm_linker Linker Support
32 *
33 * @ingroup arm_shared
34 *
35 * @brief Linker support.
36 *
37 * @{
38 */
39
40#ifndef ASM
41  #define LINKER_SYMBOL(sym) extern char sym [];
42#else
43  #define LINKER_SYMBOL(sym) .extern sym
44#endif
45
46LINKER_SYMBOL(bsp_stack_irq_begin)
47LINKER_SYMBOL(bsp_stack_irq_end)
48LINKER_SYMBOL(bsp_stack_irq_size)
49
50LINKER_SYMBOL(bsp_stack_fiq_begin)
51LINKER_SYMBOL(bsp_stack_fiq_end)
52LINKER_SYMBOL(bsp_stack_irq_size)
53
54LINKER_SYMBOL(bsp_stack_abt_begin)
55LINKER_SYMBOL(bsp_stack_abt_end)
56LINKER_SYMBOL(bsp_stack_abt_size)
57
58LINKER_SYMBOL(bsp_stack_und_begin)
59LINKER_SYMBOL(bsp_stack_und_end)
60LINKER_SYMBOL(bsp_stack_und_size)
61
62LINKER_SYMBOL(bsp_stack_svc_begin)
63LINKER_SYMBOL(bsp_stack_svc_end)
64LINKER_SYMBOL(bsp_stack_svc_size)
65
66LINKER_SYMBOL(bsp_section_start_begin)
67LINKER_SYMBOL(bsp_section_start_end)
68LINKER_SYMBOL(bsp_section_start_size)
69
70LINKER_SYMBOL(bsp_section_vector_begin)
71LINKER_SYMBOL(bsp_section_vector_end)
72LINKER_SYMBOL(bsp_section_vector_size)
73
74LINKER_SYMBOL(bsp_section_text_begin)
75LINKER_SYMBOL(bsp_section_text_end)
76LINKER_SYMBOL(bsp_section_text_size)
77LINKER_SYMBOL(bsp_section_text_load_begin)
78LINKER_SYMBOL(bsp_section_text_load_end)
79
80LINKER_SYMBOL(bsp_section_rodata_begin)
81LINKER_SYMBOL(bsp_section_rodata_end)
82LINKER_SYMBOL(bsp_section_rodata_size)
83LINKER_SYMBOL(bsp_section_rodata_load_begin)
84LINKER_SYMBOL(bsp_section_rodata_load_end)
85
86LINKER_SYMBOL(bsp_section_armexidx_begin)
87LINKER_SYMBOL(bsp_section_armexidx_end)
88LINKER_SYMBOL(bsp_section_armexidx_size)
89LINKER_SYMBOL(bsp_section_armexidx_load_begin)
90LINKER_SYMBOL(bsp_section_armexidx_load_end)
91
92LINKER_SYMBOL(bsp_section_data_begin)
93LINKER_SYMBOL(bsp_section_data_end)
94LINKER_SYMBOL(bsp_section_data_size)
95LINKER_SYMBOL(bsp_section_data_load_begin)
96LINKER_SYMBOL(bsp_section_data_load_end)
97
98LINKER_SYMBOL(bsp_section_fast_text_begin)
99LINKER_SYMBOL(bsp_section_fast_text_end)
100LINKER_SYMBOL(bsp_section_fast_text_size)
101LINKER_SYMBOL(bsp_section_fast_text_load_begin)
102LINKER_SYMBOL(bsp_section_fast_text_load_end)
103
104LINKER_SYMBOL(bsp_section_fast_data_begin)
105LINKER_SYMBOL(bsp_section_fast_data_end)
106LINKER_SYMBOL(bsp_section_fast_data_size)
107LINKER_SYMBOL(bsp_section_fast_data_load_begin)
108LINKER_SYMBOL(bsp_section_fast_data_load_end)
109
110LINKER_SYMBOL(bsp_section_bss_begin)
111LINKER_SYMBOL(bsp_section_bss_end)
112LINKER_SYMBOL(bsp_section_bss_size)
113
114LINKER_SYMBOL(bsp_section_work_begin)
115LINKER_SYMBOL(bsp_section_work_end)
116LINKER_SYMBOL(bsp_section_work_size)
117
118LINKER_SYMBOL(bsp_section_stack_begin)
119LINKER_SYMBOL(bsp_section_stack_end)
120LINKER_SYMBOL(bsp_section_stack_size)
121
122LINKER_SYMBOL(bsp_vector_table_begin)
123LINKER_SYMBOL(bsp_vector_table_end)
124LINKER_SYMBOL(bsp_vector_table_size)
125
126LINKER_SYMBOL(bsp_start_vector_table_begin)
127LINKER_SYMBOL(bsp_start_vector_table_end)
128LINKER_SYMBOL(bsp_start_vector_table_size)
129
130LINKER_SYMBOL(bsp_translation_table_base)
131
132#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text")))
133
134#define BSP_FAST_DATA_SECTION __attribute__((section(".bsp_fast_data")))
135
136/** @} */
137
138#ifdef __cplusplus
139}
140#endif /* __cplusplus */
141
142#endif /* LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H */
Note: See TracBrowser for help on using the repository browser.