RTEMS  5.1
linker-symbols.h
1 #ifndef LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H
2 #define LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif /* __cplusplus */
7 
18 #ifndef ASM
19 #define LINKER_SYMBOL(sym) extern char sym [];
20 #else
21 #define LINKER_SYMBOL(sym) .extern sym
22 #endif
23 
24 LINKER_SYMBOL(bsp_section_start_begin)
25 LINKER_SYMBOL(bsp_section_start_end)
26 LINKER_SYMBOL(bsp_section_start_size)
27 
28 LINKER_SYMBOL(bsp_section_text_begin)
29 LINKER_SYMBOL(bsp_section_text_end)
30 LINKER_SYMBOL(bsp_section_text_size)
31 LINKER_SYMBOL(bsp_section_text_load_begin)
32 LINKER_SYMBOL(bsp_section_text_load_end)
33 
34 LINKER_SYMBOL(bsp_section_rodata_begin)
35 LINKER_SYMBOL(bsp_section_rodata_end)
36 LINKER_SYMBOL(bsp_section_rodata_size)
37 LINKER_SYMBOL(bsp_section_rodata_load_begin)
38 LINKER_SYMBOL(bsp_section_rodata_load_end)
39 
40 LINKER_SYMBOL(bsp_section_fast_text_begin)
41 LINKER_SYMBOL(bsp_section_fast_text_end)
42 LINKER_SYMBOL(bsp_section_fast_text_size)
43 LINKER_SYMBOL(bsp_section_fast_text_load_begin)
44 LINKER_SYMBOL(bsp_section_fast_text_load_end)
45 
46 LINKER_SYMBOL(bsp_section_fast_data_begin)
47 LINKER_SYMBOL(bsp_section_fast_data_end)
48 LINKER_SYMBOL(bsp_section_fast_data_size)
49 LINKER_SYMBOL(bsp_section_fast_data_load_begin)
50 LINKER_SYMBOL(bsp_section_fast_data_load_end)
51 
52 LINKER_SYMBOL(bsp_section_data_begin)
53 LINKER_SYMBOL(bsp_section_data_end)
54 LINKER_SYMBOL(bsp_section_data_size)
55 LINKER_SYMBOL(bsp_section_data_load_begin)
56 LINKER_SYMBOL(bsp_section_data_load_end)
57 
58 LINKER_SYMBOL(bsp_section_bss_begin)
59 LINKER_SYMBOL(bsp_section_bss_end)
60 LINKER_SYMBOL(bsp_section_bss_size)
61 
62 LINKER_SYMBOL(bsp_section_rtemsstack_begin)
63 LINKER_SYMBOL(bsp_section_rtemsstack_end)
64 LINKER_SYMBOL(bsp_section_rtemsstack_size)
65 
66 LINKER_SYMBOL(bsp_section_work_begin)
67 LINKER_SYMBOL(bsp_section_work_end)
68 LINKER_SYMBOL(bsp_section_work_size)
69 
70 
72 #ifdef __cplusplus
73 }
74 #endif /* __cplusplus */
75 
76 #endif /* LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H */