source: rtems/bsps/m68k/include/bsp/linker-symbols.h @ fe6d96c

Last change on this file since fe6d96c was 099dda2, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 21:39:03

bsps/m68k/: Scripted embedded brains header file clean up

Updates #4625.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup bsp_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 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16
17#ifndef LIBBSP_M68K_SHARED_LINKER_SYMBOLS_H
18#define LIBBSP_M68K_SHARED_LINKER_SYMBOLS_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24/**
25 * @defgroup RTEMSBSPsM68kSharedLinker Linker Support
26 *
27 * @ingroup RTEMSBSPsM68kShared
28 *
29 * @brief Linker support.
30 *
31 * @{
32 */
33
34#ifndef ASM
35  #define LINKER_SYMBOL(sym) extern char sym [];
36#else
37  #define LINKER_SYMBOL(sym) .extern sym
38#endif
39
40LINKER_SYMBOL(bsp_vector0_begin)
41LINKER_SYMBOL(bsp_vector0_end)
42LINKER_SYMBOL(bsp_vector0_size)
43
44LINKER_SYMBOL(bsp_vector1_begin)
45LINKER_SYMBOL(bsp_vector1_end)
46LINKER_SYMBOL(bsp_vector1_size)
47
48LINKER_SYMBOL(bsp_section_text_begin)
49LINKER_SYMBOL(bsp_section_text_end)
50LINKER_SYMBOL(bsp_section_text_size)
51LINKER_SYMBOL(bsp_section_text_load_begin)
52LINKER_SYMBOL(bsp_section_text_load_end)
53
54LINKER_SYMBOL(bsp_section_data_begin)
55LINKER_SYMBOL(bsp_section_data_end)
56LINKER_SYMBOL(bsp_section_data_size)
57LINKER_SYMBOL(bsp_section_data_load_begin)
58LINKER_SYMBOL(bsp_section_data_load_end)
59
60LINKER_SYMBOL(bsp_section_bss_begin)
61LINKER_SYMBOL(bsp_section_bss_end)
62LINKER_SYMBOL(bsp_section_bss_size)
63
64LINKER_SYMBOL(bsp_section_work_begin)
65LINKER_SYMBOL(bsp_section_work_end)
66LINKER_SYMBOL(bsp_section_work_size)
67
68LINKER_SYMBOL(bsp_initstack_begin)
69LINKER_SYMBOL(bsp_initstack_end)
70LINKER_SYMBOL(bsp_initstack_size)
71
72/** @} */
73
74#ifdef __cplusplus
75}
76#endif /* __cplusplus */
77
78#endif /* LIBBSP_M68K_SHARED_LINKER_SYMBOLS_H */
Note: See TracBrowser for help on using the repository browser.