From f43042cd06a8c1deca537566b301f6181e05dbfa Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 4 Oct 2024 03:48:19 +0200 Subject: [PATCH] bsps: Move to shared Move architecture-independent items to a shared . Allow architectures to customize it through . --- .../aarch64/include/bsp/linker-symbols-arch.h | 86 +++++++++ bsps/aarch64/include/bsp/linker-symbols.h | 172 ------------------ bsps/arm/include/bsp/linker-symbols-arch.h | 87 +++++++++ bsps/{arm => }/include/bsp/linker-symbols.h | 48 ++--- ...linker-symbols.h => linker-symbols-arch.h} | 32 +--- ...linker-symbols.h => linker-symbols-arch.h} | 50 ++--- bsps/or1k/include/bsp/linker-symbols-arch.h | 51 ++++++ bsps/or1k/include/bsp/linker-symbols.h | 79 -------- .../powerpc/include/bsp/linker-symbols-arch.h | 86 +++++++++ bsps/powerpc/include/bsp/linker-symbols.h | 164 ----------------- bsps/riscv/include/bsp/linker-symbols-arch.h | 40 ++++ bsps/riscv/include/bsp/linker-symbols.h | 80 -------- spec/build/bsps/aarch64/grp.yml | 3 +- spec/build/bsps/arm/grp.yml | 3 +- spec/build/bsps/m68k/grp.yml | 3 +- spec/build/bsps/microblaze/grp.yml | 3 +- spec/build/bsps/or1k/grp.yml | 3 +- spec/build/bsps/powerpc/grp.yml | 3 +- spec/build/bsps/riscv/grp.yml | 3 +- 19 files changed, 397 insertions(+), 599 deletions(-) create mode 100644 bsps/aarch64/include/bsp/linker-symbols-arch.h delete mode 100644 bsps/aarch64/include/bsp/linker-symbols.h create mode 100644 bsps/arm/include/bsp/linker-symbols-arch.h rename bsps/{arm => }/include/bsp/linker-symbols.h (80%) rename bsps/m68k/include/bsp/{linker-symbols.h => linker-symbols-arch.h} (72%) rename bsps/microblaze/include/bsp/{linker-symbols.h => linker-symbols-arch.h} (66%) create mode 100644 bsps/or1k/include/bsp/linker-symbols-arch.h delete mode 100644 bsps/or1k/include/bsp/linker-symbols.h create mode 100644 bsps/powerpc/include/bsp/linker-symbols-arch.h delete mode 100644 bsps/powerpc/include/bsp/linker-symbols.h create mode 100644 bsps/riscv/include/bsp/linker-symbols-arch.h delete mode 100644 bsps/riscv/include/bsp/linker-symbols.h diff --git a/bsps/aarch64/include/bsp/linker-symbols-arch.h b/bsps/aarch64/include/bsp/linker-symbols-arch.h new file mode 100644 index 0000000000..04ae8c64e0 --- /dev/null +++ b/bsps/aarch64/include/bsp/linker-symbols-arch.h @@ -0,0 +1,86 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + +/** + * @file + * + * @ingroup RTEMSBSPsLinkerSymbolsAArch64 + * + * @brief This header file provides interfaces to AArch64-specific linker + * symbols and sections. + */ + +/* + * Copyright (C) 2020 On-Line Applications Research Corporation (OAR) + * Written by Kinsey Moore + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef LIBBSP_AARCH64_SHARED_LINKER_SYMBOLS_H +#define LIBBSP_AARCH64_SHARED_LINKER_SYMBOLS_H + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @defgroup RTEMSBSPsLinkerSymbolsAArch64 AArch64 Linker Symbols + * + * @ingroup RTEMSBSPsLinkerSymbols + * + * @brief This group provides support for AArch64-specific linker symbols and + * sections. + * + * @{ + */ + +#ifndef ASM + #define LINKER_SYMBOL(sym) extern char sym []; +#else + #define LINKER_SYMBOL(sym) .extern sym +#endif + +LINKER_SYMBOL(bsp_stack_exception_size) +LINKER_SYMBOL(bsp_stack_hyp_size) + +LINKER_SYMBOL(bsp_section_vector_begin) +LINKER_SYMBOL(bsp_section_vector_end) +LINKER_SYMBOL(bsp_section_vector_size) + +LINKER_SYMBOL(bsp_vector_table_begin) +LINKER_SYMBOL(bsp_vector_table_end) +LINKER_SYMBOL(bsp_vector_table_size) + +LINKER_SYMBOL(bsp_start_vector_table_begin) +LINKER_SYMBOL(bsp_start_vector_table_end) +LINKER_SYMBOL(bsp_start_vector_table_size) + +LINKER_SYMBOL(bsp_translation_table_base) +LINKER_SYMBOL(bsp_translation_table_end) + +/** @} */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* LIBBSP_AARCH64_SHARED_LINKER_SYMBOLS_H */ diff --git a/bsps/aarch64/include/bsp/linker-symbols.h b/bsps/aarch64/include/bsp/linker-symbols.h deleted file mode 100644 index c550bd9eba..0000000000 --- a/bsps/aarch64/include/bsp/linker-symbols.h +++ /dev/null @@ -1,172 +0,0 @@ -/* SPDX-License-Identifier: BSD-2-Clause */ - -/** - * @file - * - * @ingroup aarch64_linker - * - * @brief Symbols defined in linker command base file. - */ - -/* - * Copyright (C) 2020 On-Line Applications Research Corporation (OAR) - * Written by Kinsey Moore - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef LIBBSP_AARCH64_SHARED_LINKER_SYMBOLS_H -#define LIBBSP_AARCH64_SHARED_LINKER_SYMBOLS_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/** - * @defgroup aarch64_linker Linker Support - * - * @ingroup RTEMSBSPsAArch64Shared - * - * @brief Linker support. - * - * @{ - */ - -#ifndef ASM - #define LINKER_SYMBOL(sym) extern char sym []; -#else - #define LINKER_SYMBOL(sym) .extern sym -#endif - -LINKER_SYMBOL(bsp_stack_exception_size) -LINKER_SYMBOL(bsp_stack_hyp_size) - -LINKER_SYMBOL(bsp_section_start_begin) -LINKER_SYMBOL(bsp_section_start_end) -LINKER_SYMBOL(bsp_section_start_size) - -LINKER_SYMBOL(bsp_section_vector_begin) -LINKER_SYMBOL(bsp_section_vector_end) -LINKER_SYMBOL(bsp_section_vector_size) - -LINKER_SYMBOL(bsp_section_text_begin) -LINKER_SYMBOL(bsp_section_text_end) -LINKER_SYMBOL(bsp_section_text_size) -LINKER_SYMBOL(bsp_section_text_load_begin) -LINKER_SYMBOL(bsp_section_text_load_end) - -LINKER_SYMBOL(bsp_section_rodata_begin) -LINKER_SYMBOL(bsp_section_rodata_end) -LINKER_SYMBOL(bsp_section_rodata_size) -LINKER_SYMBOL(bsp_section_rodata_load_begin) -LINKER_SYMBOL(bsp_section_rodata_load_end) - -LINKER_SYMBOL(bsp_section_data_begin) -LINKER_SYMBOL(bsp_section_data_end) -LINKER_SYMBOL(bsp_section_data_size) -LINKER_SYMBOL(bsp_section_data_load_begin) -LINKER_SYMBOL(bsp_section_data_load_end) - -LINKER_SYMBOL(bsp_section_fast_text_begin) -LINKER_SYMBOL(bsp_section_fast_text_end) -LINKER_SYMBOL(bsp_section_fast_text_size) -LINKER_SYMBOL(bsp_section_fast_text_load_begin) -LINKER_SYMBOL(bsp_section_fast_text_load_end) - -LINKER_SYMBOL(bsp_section_fast_data_begin) -LINKER_SYMBOL(bsp_section_fast_data_end) -LINKER_SYMBOL(bsp_section_fast_data_size) -LINKER_SYMBOL(bsp_section_fast_data_load_begin) -LINKER_SYMBOL(bsp_section_fast_data_load_end) - -LINKER_SYMBOL(bsp_section_bss_begin) -LINKER_SYMBOL(bsp_section_bss_end) -LINKER_SYMBOL(bsp_section_bss_size) - -LINKER_SYMBOL(bsp_section_rtemsstack_begin) -LINKER_SYMBOL(bsp_section_rtemsstack_end) -LINKER_SYMBOL(bsp_section_rtemsstack_size) - -LINKER_SYMBOL(bsp_section_noinit_begin) -LINKER_SYMBOL(bsp_section_noinit_end) -LINKER_SYMBOL(bsp_section_noinit_size) - -LINKER_SYMBOL(bsp_section_work_begin) -LINKER_SYMBOL(bsp_section_work_end) -LINKER_SYMBOL(bsp_section_work_size) - -LINKER_SYMBOL(bsp_section_stack_begin) -LINKER_SYMBOL(bsp_section_stack_end) -LINKER_SYMBOL(bsp_section_stack_size) - -LINKER_SYMBOL(bsp_section_nocache_begin) -LINKER_SYMBOL(bsp_section_nocache_end) -LINKER_SYMBOL(bsp_section_nocache_size) -LINKER_SYMBOL(bsp_section_nocache_load_begin) -LINKER_SYMBOL(bsp_section_nocache_load_end) - -LINKER_SYMBOL(bsp_section_nocachenoload_begin) -LINKER_SYMBOL(bsp_section_nocachenoload_end) -LINKER_SYMBOL(bsp_section_nocachenoload_size) - -LINKER_SYMBOL(bsp_section_nocacheheap_begin) -LINKER_SYMBOL(bsp_section_nocacheheap_end) -LINKER_SYMBOL(bsp_section_nocacheheap_size) - -LINKER_SYMBOL(bsp_vector_table_begin) -LINKER_SYMBOL(bsp_vector_table_end) -LINKER_SYMBOL(bsp_vector_table_size) - -LINKER_SYMBOL(bsp_start_vector_table_begin) -LINKER_SYMBOL(bsp_start_vector_table_end) -LINKER_SYMBOL(bsp_start_vector_table_size) - -LINKER_SYMBOL(bsp_translation_table_base) -LINKER_SYMBOL(bsp_translation_table_end) - -#define BSP_FAST_TEXT_SECTION \ - RTEMS_SECTION(".bsp_fast_text") - -#define BSP_FAST_DATA_SECTION \ - RTEMS_SECTION(".bsp_fast_data") - -#define BSP_NOCACHE_SECTION \ - RTEMS_SECTION(".bsp_nocache") - -#define BSP_NOCACHE_SUBSECTION(subsection) \ - RTEMS_SECTION(".bsp_nocache." # subsection) - -#define BSP_NOCACHENOLOAD_SECTION \ - RTEMS_SECTION(".bsp_noload_nocache") - -#define BSP_NOCACHENOLOAD_SUBSECTION(subsection) \ - RTEMS_SECTION(".bsp_noload_nocache." # subsection) - -/** @} */ - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* LIBBSP_AARCH64_SHARED_LINKER_SYMBOLS_H */ diff --git a/bsps/arm/include/bsp/linker-symbols-arch.h b/bsps/arm/include/bsp/linker-symbols-arch.h new file mode 100644 index 0000000000..85856e29cf --- /dev/null +++ b/bsps/arm/include/bsp/linker-symbols-arch.h @@ -0,0 +1,87 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + +/** + * @file + * + * @ingroup RTEMSBSPsLinkerSymbolsArm + * + * @brief This header file provides interfaces to Arm-specific linker symbols + * and sections. + */ + +/* + * Copyright (C) 2008, 2016 embedded brains GmbH & Co. KG + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H +#define LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @defgroup RTEMSBSPsLinkerSymbolsArm Arm Linker Symbols + * + * @ingroup RTEMSBSPsLinkerSymbols + * + * @brief This group provides support for Arm-specific linker symbols and + * sections. + * + * @{ + */ + +#ifndef ASM + #define LINKER_SYMBOL(sym) extern char sym []; +#else + #define LINKER_SYMBOL(sym) .extern sym +#endif + +LINKER_SYMBOL(bsp_stack_fiq_size) +LINKER_SYMBOL(bsp_stack_abt_size) +LINKER_SYMBOL(bsp_stack_und_size) +LINKER_SYMBOL(bsp_stack_hyp_size) + +LINKER_SYMBOL(bsp_section_vector_begin) +LINKER_SYMBOL(bsp_section_vector_end) +LINKER_SYMBOL(bsp_section_vector_size) + +LINKER_SYMBOL(bsp_vector_table_begin) +LINKER_SYMBOL(bsp_vector_table_end) +LINKER_SYMBOL(bsp_vector_table_size) + +LINKER_SYMBOL(bsp_start_vector_table_begin) +LINKER_SYMBOL(bsp_start_vector_table_end) +LINKER_SYMBOL(bsp_start_vector_table_size) + +LINKER_SYMBOL(bsp_translation_table_base) +LINKER_SYMBOL(bsp_translation_table_end) + +/** @} */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H */ diff --git a/bsps/arm/include/bsp/linker-symbols.h b/bsps/include/bsp/linker-symbols.h similarity index 80% rename from bsps/arm/include/bsp/linker-symbols.h rename to bsps/include/bsp/linker-symbols.h index 2de59c28ae..cc37b9c3f0 100644 --- a/bsps/arm/include/bsp/linker-symbols.h +++ b/bsps/include/bsp/linker-symbols.h @@ -3,13 +3,14 @@ /** * @file * - * @ingroup arm_linker + * @ingroup RTEMSBSPsLinkerSymbols * - * @brief Symbols defined in linker command base file. + * @brief This header file provides interfaces to BSP-specific linker symbols + * and sections. */ /* - * Copyright (C) 2008, 2016 embedded brains GmbH & Co. KG + * Copyright (C) 2008, 2024 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -33,8 +34,10 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H -#define LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H +#ifndef BSP_LINKER_SYMBOLS_H +#define BSP_LINKER_SYMBOLS_H + +#include #include @@ -43,34 +46,20 @@ extern "C" { #endif /* __cplusplus */ /** - * @defgroup arm_linker Linker Support + * @defgroup RTEMSBSPsLinkerSymbols Linker Symbols and Sections * - * @ingroup RTEMSBSPsARMShared + * @ingroup RTEMSBSPsShared * - * @brief Linker support. + * @brief This group provides support for BSP-specific linker symbols and + * sections. * * @{ */ -#ifndef ASM - #define LINKER_SYMBOL(sym) extern char sym []; -#else - #define LINKER_SYMBOL(sym) .extern sym -#endif - -LINKER_SYMBOL(bsp_stack_fiq_size) -LINKER_SYMBOL(bsp_stack_abt_size) -LINKER_SYMBOL(bsp_stack_und_size) -LINKER_SYMBOL(bsp_stack_hyp_size) - LINKER_SYMBOL(bsp_section_start_begin) LINKER_SYMBOL(bsp_section_start_end) LINKER_SYMBOL(bsp_section_start_size) -LINKER_SYMBOL(bsp_section_vector_begin) -LINKER_SYMBOL(bsp_section_vector_end) -LINKER_SYMBOL(bsp_section_vector_size) - LINKER_SYMBOL(bsp_section_text_begin) LINKER_SYMBOL(bsp_section_text_end) LINKER_SYMBOL(bsp_section_text_size) @@ -135,17 +124,6 @@ LINKER_SYMBOL(bsp_section_nocacheheap_begin) LINKER_SYMBOL(bsp_section_nocacheheap_end) LINKER_SYMBOL(bsp_section_nocacheheap_size) -LINKER_SYMBOL(bsp_vector_table_begin) -LINKER_SYMBOL(bsp_vector_table_end) -LINKER_SYMBOL(bsp_vector_table_size) - -LINKER_SYMBOL(bsp_start_vector_table_begin) -LINKER_SYMBOL(bsp_start_vector_table_end) -LINKER_SYMBOL(bsp_start_vector_table_size) - -LINKER_SYMBOL(bsp_translation_table_base) -LINKER_SYMBOL(bsp_translation_table_end) - #define BSP_FAST_TEXT_SECTION \ RTEMS_SECTION(".bsp_fast_text") @@ -170,4 +148,4 @@ LINKER_SYMBOL(bsp_translation_table_end) } #endif /* __cplusplus */ -#endif /* LIBBSP_ARM_SHARED_LINKER_SYMBOLS_H */ +#endif /* BSP_LINKER_SYMBOLS_H */ diff --git a/bsps/m68k/include/bsp/linker-symbols.h b/bsps/m68k/include/bsp/linker-symbols-arch.h similarity index 72% rename from bsps/m68k/include/bsp/linker-symbols.h rename to bsps/m68k/include/bsp/linker-symbols-arch.h index e7e707e7df..294a43e671 100644 --- a/bsps/m68k/include/bsp/linker-symbols.h +++ b/bsps/m68k/include/bsp/linker-symbols-arch.h @@ -3,9 +3,10 @@ /** * @file * - * @ingroup bsp_linker + * @ingroup RTEMSBSPsLinkerSymbolsM68k * - * @brief Symbols defined in linker command base file. + * @brief This header file provides interfaces to Motorola 68000 specific + * linker symbols and sections. */ /* @@ -41,11 +42,12 @@ extern "C" { #endif /* __cplusplus */ /** - * @defgroup RTEMSBSPsM68kSharedLinker Linker Support + * @defgroup RTEMSBSPsLinkerSymbolsM68k Motorola 68000 Linker Symbols * - * @ingroup RTEMSBSPsM68kShared + * @ingroup RTEMSBSPsLinkerSymbols * - * @brief Linker support. + * @brief This group provides support for Motorola 68000 specific linker + * symbols and sections. * * @{ */ @@ -64,26 +66,6 @@ LINKER_SYMBOL(bsp_vector1_begin) LINKER_SYMBOL(bsp_vector1_end) LINKER_SYMBOL(bsp_vector1_size) -LINKER_SYMBOL(bsp_section_text_begin) -LINKER_SYMBOL(bsp_section_text_end) -LINKER_SYMBOL(bsp_section_text_size) -LINKER_SYMBOL(bsp_section_text_load_begin) -LINKER_SYMBOL(bsp_section_text_load_end) - -LINKER_SYMBOL(bsp_section_data_begin) -LINKER_SYMBOL(bsp_section_data_end) -LINKER_SYMBOL(bsp_section_data_size) -LINKER_SYMBOL(bsp_section_data_load_begin) -LINKER_SYMBOL(bsp_section_data_load_end) - -LINKER_SYMBOL(bsp_section_bss_begin) -LINKER_SYMBOL(bsp_section_bss_end) -LINKER_SYMBOL(bsp_section_bss_size) - -LINKER_SYMBOL(bsp_section_work_begin) -LINKER_SYMBOL(bsp_section_work_end) -LINKER_SYMBOL(bsp_section_work_size) - LINKER_SYMBOL(bsp_initstack_begin) LINKER_SYMBOL(bsp_initstack_end) LINKER_SYMBOL(bsp_initstack_size) diff --git a/bsps/microblaze/include/bsp/linker-symbols.h b/bsps/microblaze/include/bsp/linker-symbols-arch.h similarity index 66% rename from bsps/microblaze/include/bsp/linker-symbols.h rename to bsps/microblaze/include/bsp/linker-symbols-arch.h index da162060b5..5a951529ef 100644 --- a/bsps/microblaze/include/bsp/linker-symbols.h +++ b/bsps/microblaze/include/bsp/linker-symbols-arch.h @@ -1,5 +1,14 @@ /* SPDX-License-Identifier: BSD-2-Clause */ +/** + * @file + * + * @ingroup RTEMSBSPsLinkerSymbolsMicroBlaze + * + * @brief This header file provides interfaces to MicroBlaze-specific linker + * symbols and sections. + */ + /* * Copyright (C) 2015 Hesham Almatary * @@ -33,11 +42,12 @@ extern "C" { #endif /* __cplusplus */ /** - * @defgroup microblaze Linker Support + * @defgroup RTEMSBSPsLinkerSymbolsMicroBlaze MicroBlaze Linker Symbols * - * @ingroup microblaze_shared + * @ingroup RTEMSBSPsLinkerSymbols * - * @brief Linker support. + * @brief This group provides support for MicroBlaze-specific linker symbols + * and sections. * * @{ */ @@ -48,44 +58,10 @@ extern "C" { #define LINKER_SYMBOL(sym) .extern sym #endif -LINKER_SYMBOL(bsp_section_start_begin) -LINKER_SYMBOL(bsp_section_start_end) -LINKER_SYMBOL(bsp_section_start_size) - LINKER_SYMBOL(bsp_section_vector_begin) LINKER_SYMBOL(bsp_section_vector_end) LINKER_SYMBOL(bsp_section_vector_size) -LINKER_SYMBOL(bsp_section_text_begin) -LINKER_SYMBOL(bsp_section_text_end) -LINKER_SYMBOL(bsp_section_text_size) -LINKER_SYMBOL(bsp_section_text_load_begin) -LINKER_SYMBOL(bsp_section_text_load_end) - -LINKER_SYMBOL(bsp_section_rodata_begin) -LINKER_SYMBOL(bsp_section_rodata_end) -LINKER_SYMBOL(bsp_section_rodata_size) -LINKER_SYMBOL(bsp_section_rodata_load_begin) -LINKER_SYMBOL(bsp_section_rodata_load_end) - -LINKER_SYMBOL(bsp_section_data_begin) -LINKER_SYMBOL(bsp_section_data_end) -LINKER_SYMBOL(bsp_section_data_size) -LINKER_SYMBOL(bsp_section_data_load_begin) -LINKER_SYMBOL(bsp_section_data_load_end) - -LINKER_SYMBOL(bsp_section_bss_begin) -LINKER_SYMBOL(bsp_section_bss_end) -LINKER_SYMBOL(bsp_section_bss_size) - -LINKER_SYMBOL(bsp_section_work_begin) -LINKER_SYMBOL(bsp_section_work_end) -LINKER_SYMBOL(bsp_section_work_size) - -LINKER_SYMBOL(bsp_section_stack_begin) -LINKER_SYMBOL(bsp_section_stack_end) -LINKER_SYMBOL(bsp_section_stack_size) - LINKER_SYMBOL(bsp_vector_table_begin) LINKER_SYMBOL(bsp_vector_table_end) LINKER_SYMBOL(bsp_vector_table_size) diff --git a/bsps/or1k/include/bsp/linker-symbols-arch.h b/bsps/or1k/include/bsp/linker-symbols-arch.h new file mode 100644 index 0000000000..688616de60 --- /dev/null +++ b/bsps/or1k/include/bsp/linker-symbols-arch.h @@ -0,0 +1,51 @@ +#ifndef LIBBSP_OR1k_SHARED_LINKER_SYMBOLS_H +#define LIBBSP_OR1k_SHARED_LINKER_SYMBOLS_H + +/** + * @file + * + * @ingroup RTEMSBSPsLinkerSymbolsOr1k + * + * @brief This header file provides interfaces to OpenRISC 1000 specific linker + * symbols and sections. + */ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @defgroup RTEMSBSPsLinkerSymbolsOr1k OpenRISC 1000 Linker Symbols + * + * @ingroup RTEMSBSPsLinkerSymbols + * + * @brief This group provides support for OpenRISC 1000 specific linker symbols + * and sections. + * + * @{ + */ + +#ifndef ASM + #define LINKER_SYMBOL(sym) extern char sym []; +#else + #define LINKER_SYMBOL(sym) .extern sym +#endif + +LINKER_SYMBOL(bsp_vector_table_begin) +LINKER_SYMBOL(bsp_vector_table_end) +LINKER_SYMBOL(bsp_vector_table_size) + +LINKER_SYMBOL(bsp_start_vector_table_begin) +LINKER_SYMBOL(bsp_start_vector_table_end) +LINKER_SYMBOL(bsp_start_vector_table_size) + +LINKER_SYMBOL(bsp_translation_table_base) +LINKER_SYMBOL(bsp_translation_table_end) + +/** @} */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* LIBBSP_OR1K_SHARED_LINKER_SYMBOLS_H */ diff --git a/bsps/or1k/include/bsp/linker-symbols.h b/bsps/or1k/include/bsp/linker-symbols.h deleted file mode 100644 index cf513a347c..0000000000 --- a/bsps/or1k/include/bsp/linker-symbols.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef LIBBSP_OR1k_SHARED_LINKER_SYMBOLS_H -#define LIBBSP_OR1k_SHARED_LINKER_SYMBOLS_H - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/** - * @defgroup RTEMSBSPsOR1KSharedLinker Linker Support - * - * @ingroup RTEMSBSPsOR1K - * - * @brief Linker support. - * - * @{ - */ - -#ifndef ASM - #define LINKER_SYMBOL(sym) extern char sym []; -#else - #define LINKER_SYMBOL(sym) .extern sym -#endif - -LINKER_SYMBOL(bsp_section_start_begin) -LINKER_SYMBOL(bsp_section_start_end) -LINKER_SYMBOL(bsp_section_start_size) - -LINKER_SYMBOL(bsp_section_vector_begin) -LINKER_SYMBOL(bsp_section_vector_end) -LINKER_SYMBOL(bsp_section_vector_size) - -LINKER_SYMBOL(bsp_section_text_begin) -LINKER_SYMBOL(bsp_section_text_end) -LINKER_SYMBOL(bsp_section_text_size) -LINKER_SYMBOL(bsp_section_text_load_begin) -LINKER_SYMBOL(bsp_section_text_load_end) - -LINKER_SYMBOL(bsp_section_rodata_begin) -LINKER_SYMBOL(bsp_section_rodata_end) -LINKER_SYMBOL(bsp_section_rodata_size) -LINKER_SYMBOL(bsp_section_rodata_load_begin) -LINKER_SYMBOL(bsp_section_rodata_load_end) - -LINKER_SYMBOL(bsp_section_data_begin) -LINKER_SYMBOL(bsp_section_data_end) -LINKER_SYMBOL(bsp_section_data_size) -LINKER_SYMBOL(bsp_section_data_load_begin) -LINKER_SYMBOL(bsp_section_data_load_end) - -LINKER_SYMBOL(bsp_section_bss_begin) -LINKER_SYMBOL(bsp_section_bss_end) -LINKER_SYMBOL(bsp_section_bss_size) - -LINKER_SYMBOL(bsp_section_work_begin) -LINKER_SYMBOL(bsp_section_work_end) -LINKER_SYMBOL(bsp_section_work_size) - -LINKER_SYMBOL(bsp_section_stack_begin) -LINKER_SYMBOL(bsp_section_stack_end) -LINKER_SYMBOL(bsp_section_stack_size) - -LINKER_SYMBOL(bsp_vector_table_begin) -LINKER_SYMBOL(bsp_vector_table_end) -LINKER_SYMBOL(bsp_vector_table_size) - -LINKER_SYMBOL(bsp_start_vector_table_begin) -LINKER_SYMBOL(bsp_start_vector_table_end) -LINKER_SYMBOL(bsp_start_vector_table_size) - -LINKER_SYMBOL(bsp_translation_table_base) -LINKER_SYMBOL(bsp_translation_table_end) - -/** @} */ - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* LIBBSP_OR1K_SHARED_LINKER_SYMBOLS_H */ diff --git a/bsps/powerpc/include/bsp/linker-symbols-arch.h b/bsps/powerpc/include/bsp/linker-symbols-arch.h new file mode 100644 index 0000000000..c12934d6d5 --- /dev/null +++ b/bsps/powerpc/include/bsp/linker-symbols-arch.h @@ -0,0 +1,86 @@ +/* SPDX-License-Identifier: BSD-2-Clause */ + +/** + * @file + * + * @ingroup RTEMSBSPsLinkerSymbolsPowerPC + * + * @brief This header file provides interfaces to PowerPC-specific linker + * symbols and sections. + */ + +/* + * Copyright (C) 2010, 2016 embedded brains GmbH & Co. KG + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H +#define LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H + +#include + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @defgroup RTEMSBSPsLinkerSymbolsPowerPC PowerPC Linker Symbols and Sections + * + * @ingroup RTEMSBSPsLinkerSymbols + * + * @brief This group provides support for PowerPC-specific linker symbols and + * sections. + * + * @{ + */ + +LINKER_SYMBOL(bsp_section_sdata_begin) +LINKER_SYMBOL(bsp_section_sdata_end) +LINKER_SYMBOL(bsp_section_sdata_size) + +LINKER_SYMBOL(bsp_section_sbss_begin) +LINKER_SYMBOL(bsp_section_sbss_end) +LINKER_SYMBOL(bsp_section_sbss_size) + +LINKER_SYMBOL(bsp_section_sdata_libdl_begin) +LINKER_SYMBOL(bsp_section_sdata_libdl_end) +LINKER_SYMBOL(bsp_section_sdata_libdl_size) + +LINKER_SYMBOL(bsp_section_nvram_begin) +LINKER_SYMBOL(bsp_section_nvram_end) +LINKER_SYMBOL(bsp_section_nvram_size) + +#define BSP_NVRAM_SECTION RTEMS_SECTION(".bsp_nvram") + +#define BSP_NVRAM_SUBSECTION(subsection) \ + RTEMS_SECTION(".bsp_nvram." # subsection) + +/** @} */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H */ diff --git a/bsps/powerpc/include/bsp/linker-symbols.h b/bsps/powerpc/include/bsp/linker-symbols.h deleted file mode 100644 index 4dc607034e..0000000000 --- a/bsps/powerpc/include/bsp/linker-symbols.h +++ /dev/null @@ -1,164 +0,0 @@ -/* SPDX-License-Identifier: BSD-2-Clause */ - -/** - * @file - * - * @ingroup powerpc_linker - * - * @brief Symbols defined in linker command base file. - */ - -/* - * Copyright (C) 2010, 2016 embedded brains GmbH & Co. KG - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H -#define LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H - -#include - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/** - * @defgroup RTEMSBSPsPowerPCSharedLinker Linker Support - * - * @ingroup RTEMSBSPsPowerPCShared - * - * @brief Linker support. - * - * @{ - */ - -LINKER_SYMBOL(bsp_section_start_begin) -LINKER_SYMBOL(bsp_section_start_end) -LINKER_SYMBOL(bsp_section_start_size) - -LINKER_SYMBOL(bsp_section_fast_text_begin) -LINKER_SYMBOL(bsp_section_fast_text_end) -LINKER_SYMBOL(bsp_section_fast_text_size) -LINKER_SYMBOL(bsp_section_fast_text_load_begin) -LINKER_SYMBOL(bsp_section_fast_text_load_end) - -LINKER_SYMBOL(bsp_section_text_begin) -LINKER_SYMBOL(bsp_section_text_end) -LINKER_SYMBOL(bsp_section_text_size) -LINKER_SYMBOL(bsp_section_text_load_begin) -LINKER_SYMBOL(bsp_section_text_load_end) - -LINKER_SYMBOL(bsp_section_rodata_begin) -LINKER_SYMBOL(bsp_section_rodata_end) -LINKER_SYMBOL(bsp_section_rodata_size) -LINKER_SYMBOL(bsp_section_rodata_load_begin) -LINKER_SYMBOL(bsp_section_rodata_load_end) - -LINKER_SYMBOL(bsp_section_fast_data_begin) -LINKER_SYMBOL(bsp_section_fast_data_end) -LINKER_SYMBOL(bsp_section_fast_data_size) -LINKER_SYMBOL(bsp_section_fast_data_load_begin) -LINKER_SYMBOL(bsp_section_fast_data_load_end) - -LINKER_SYMBOL(bsp_section_data_begin) -LINKER_SYMBOL(bsp_section_data_end) -LINKER_SYMBOL(bsp_section_data_size) -LINKER_SYMBOL(bsp_section_data_load_begin) -LINKER_SYMBOL(bsp_section_data_load_end) - -LINKER_SYMBOL(bsp_section_bss_begin) -LINKER_SYMBOL(bsp_section_bss_end) -LINKER_SYMBOL(bsp_section_bss_size) - -LINKER_SYMBOL(bsp_section_sdata_begin) -LINKER_SYMBOL(bsp_section_sdata_end) -LINKER_SYMBOL(bsp_section_sdata_size) - -LINKER_SYMBOL(bsp_section_sbss_begin) -LINKER_SYMBOL(bsp_section_sbss_end) -LINKER_SYMBOL(bsp_section_sbss_size) - -LINKER_SYMBOL(bsp_section_sdata_libdl_begin) -LINKER_SYMBOL(bsp_section_sdata_libdl_end) -LINKER_SYMBOL(bsp_section_sdata_libdl_size) - -LINKER_SYMBOL(bsp_section_rtemsstack_begin) -LINKER_SYMBOL(bsp_section_rtemsstack_end) -LINKER_SYMBOL(bsp_section_rtemsstack_size) - -LINKER_SYMBOL(bsp_section_noinit_begin) -LINKER_SYMBOL(bsp_section_noinit_end) -LINKER_SYMBOL(bsp_section_noinit_size) - -LINKER_SYMBOL(bsp_section_work_begin) -LINKER_SYMBOL(bsp_section_work_end) -LINKER_SYMBOL(bsp_section_work_size) - -LINKER_SYMBOL(bsp_section_stack_begin) -LINKER_SYMBOL(bsp_section_stack_end) -LINKER_SYMBOL(bsp_section_stack_size) - -LINKER_SYMBOL(bsp_section_nocache_begin) -LINKER_SYMBOL(bsp_section_nocache_end) -LINKER_SYMBOL(bsp_section_nocache_size) -LINKER_SYMBOL(bsp_section_nocache_load_begin) -LINKER_SYMBOL(bsp_section_nocache_load_end) - -LINKER_SYMBOL(bsp_section_nocachenoload_begin) -LINKER_SYMBOL(bsp_section_nocachenoload_end) -LINKER_SYMBOL(bsp_section_nocachenoload_size) - -LINKER_SYMBOL(bsp_section_nocacheheap_begin) -LINKER_SYMBOL(bsp_section_nocacheheap_end) -LINKER_SYMBOL(bsp_section_nocacheheap_size) - -LINKER_SYMBOL(bsp_section_nvram_begin) -LINKER_SYMBOL(bsp_section_nvram_end) -LINKER_SYMBOL(bsp_section_nvram_size) - -#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text"))) - -#define BSP_FAST_DATA_SECTION __attribute__((section(".bsp_fast_data"))) - -#define BSP_NOCACHE_SECTION __attribute__((section(".bsp_nocache"))) - -#define BSP_NOCACHE_SUBSECTION(subsection) \ - __attribute__((section(".bsp_nocache." # subsection))) - -#define BSP_NOCACHENOLOAD_SECTION __attribute__((section(".bsp_noload_nocache"))) - -#define BSP_NOCACHENOLOAD_SUBSECTION(subsection) \ - __attribute__((section(".bsp_noload_nocache." # subsection))) - -#define BSP_NVRAM_SECTION __attribute__((section(".bsp_nvram"))) - -#define BSP_NVRAM_SUBSECTION(subsection) \ - __attribute__((section(".bsp_nvram." # subsection))) - -/** @} */ - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* LIBBSP_POWERPC_SHARED_LINKER_SYMBOLS_H */ diff --git a/bsps/riscv/include/bsp/linker-symbols-arch.h b/bsps/riscv/include/bsp/linker-symbols-arch.h new file mode 100644 index 0000000000..cf83f701f0 --- /dev/null +++ b/bsps/riscv/include/bsp/linker-symbols-arch.h @@ -0,0 +1,40 @@ +#ifndef LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H +#define LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H + +/** + * @file + * + * @ingroup RTEMSBSPsLinkerSymbolsRISCV + * + * @brief This header file provides interfaces to RISC-V specific linker + * symbols and sections. + */ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @defgroup RTEMSBSPsLinkerSymbolsRISCV RISC-V Linker Symbols + * + * @ingroup RTEMSBSPsLinkerSymbols + * + * @brief This group provides support for RISC-V specific linker symbols and + * sections. + * + * @{ + */ + +#ifndef ASM +#define LINKER_SYMBOL(sym) extern char sym []; +#else +#define LINKER_SYMBOL(sym) .extern sym +#endif + +/** @} */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H */ diff --git a/bsps/riscv/include/bsp/linker-symbols.h b/bsps/riscv/include/bsp/linker-symbols.h deleted file mode 100644 index 87a3a9cd85..0000000000 --- a/bsps/riscv/include/bsp/linker-symbols.h +++ /dev/null @@ -1,80 +0,0 @@ -#ifndef LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H -#define LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -/** - * @defgroup RTEMSBSPsRISCVSharedLinker Linker Support - * - * @ingroup RTEMSBSPsRISCVShared - * - * @brief Linker support. - * - * @{ - */ - -#ifndef ASM -#define LINKER_SYMBOL(sym) extern char sym []; -#else -#define LINKER_SYMBOL(sym) .extern sym -#endif - -LINKER_SYMBOL(bsp_section_start_begin) -LINKER_SYMBOL(bsp_section_start_end) -LINKER_SYMBOL(bsp_section_start_size) - -LINKER_SYMBOL(bsp_section_text_begin) -LINKER_SYMBOL(bsp_section_text_end) -LINKER_SYMBOL(bsp_section_text_size) -LINKER_SYMBOL(bsp_section_text_load_begin) -LINKER_SYMBOL(bsp_section_text_load_end) - -LINKER_SYMBOL(bsp_section_rodata_begin) -LINKER_SYMBOL(bsp_section_rodata_end) -LINKER_SYMBOL(bsp_section_rodata_size) -LINKER_SYMBOL(bsp_section_rodata_load_begin) -LINKER_SYMBOL(bsp_section_rodata_load_end) - -LINKER_SYMBOL(bsp_section_fast_text_begin) -LINKER_SYMBOL(bsp_section_fast_text_end) -LINKER_SYMBOL(bsp_section_fast_text_size) -LINKER_SYMBOL(bsp_section_fast_text_load_begin) -LINKER_SYMBOL(bsp_section_fast_text_load_end) - -LINKER_SYMBOL(bsp_section_fast_data_begin) -LINKER_SYMBOL(bsp_section_fast_data_end) -LINKER_SYMBOL(bsp_section_fast_data_size) -LINKER_SYMBOL(bsp_section_fast_data_load_begin) -LINKER_SYMBOL(bsp_section_fast_data_load_end) - -LINKER_SYMBOL(bsp_section_data_begin) -LINKER_SYMBOL(bsp_section_data_end) -LINKER_SYMBOL(bsp_section_data_size) -LINKER_SYMBOL(bsp_section_data_load_begin) -LINKER_SYMBOL(bsp_section_data_load_end) - -LINKER_SYMBOL(bsp_section_bss_begin) -LINKER_SYMBOL(bsp_section_bss_end) -LINKER_SYMBOL(bsp_section_bss_size) - -LINKER_SYMBOL(bsp_section_rtemsstack_begin) -LINKER_SYMBOL(bsp_section_rtemsstack_end) -LINKER_SYMBOL(bsp_section_rtemsstack_size) - -LINKER_SYMBOL(bsp_section_noinit_begin) -LINKER_SYMBOL(bsp_section_noinit_end) -LINKER_SYMBOL(bsp_section_noinit_size) - -LINKER_SYMBOL(bsp_section_work_begin) -LINKER_SYMBOL(bsp_section_work_end) -LINKER_SYMBOL(bsp_section_work_size) - -/** @} */ - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H */ diff --git a/spec/build/bsps/aarch64/grp.yml b/spec/build/bsps/aarch64/grp.yml index 613093f8bf..23f38460d2 100644 --- a/spec/build/bsps/aarch64/grp.yml +++ b/spec/build/bsps/aarch64/grp.yml @@ -10,8 +10,9 @@ includes: [] install: - destination: ${BSP_INCLUDEDIR}/bsp source: - - bsps/aarch64/include/bsp/linker-symbols.h + - bsps/aarch64/include/bsp/linker-symbols-arch.h - bsps/aarch64/include/bsp/start.h + - bsps/include/bsp/linker-symbols.h - destination: ${BSP_LIBDIR} source: - bsps/aarch64/shared/start/linkcmds.base diff --git a/spec/build/bsps/arm/grp.yml b/spec/build/bsps/arm/grp.yml index 863a4df409..afe11a255d 100644 --- a/spec/build/bsps/arm/grp.yml +++ b/spec/build/bsps/arm/grp.yml @@ -32,13 +32,14 @@ install: - bsps/arm/include/bsp/arm-release-id.h - bsps/arm/include/bsp/armv7m-irq.h - bsps/arm/include/bsp/clock-armv7m.h - - bsps/arm/include/bsp/linker-symbols.h + - bsps/arm/include/bsp/linker-symbols-arch.h - bsps/arm/include/bsp/lpc-dma.h - bsps/arm/include/bsp/lpc-emc.h - bsps/arm/include/bsp/lpc-i2s.h - bsps/arm/include/bsp/lpc-lcd.h - bsps/arm/include/bsp/lpc-timer.h - bsps/arm/include/bsp/start.h + - bsps/include/bsp/linker-symbols.h - destination: ${BSP_LIBDIR} source: - bsps/arm/shared/start/linkcmds.armv4 diff --git a/spec/build/bsps/m68k/grp.yml b/spec/build/bsps/m68k/grp.yml index f5fc279ba6..73a038af17 100644 --- a/spec/build/bsps/m68k/grp.yml +++ b/spec/build/bsps/m68k/grp.yml @@ -13,7 +13,8 @@ install: - bsps/m68k/include/mvme16x_hw.h - destination: ${BSP_INCLUDEDIR}/bsp source: - - bsps/m68k/include/bsp/linker-symbols.h + - bsps/include/bsp/linker-symbols.h + - bsps/m68k/include/bsp/linker-symbols-arch.h - destination: ${BSP_INCLUDEDIR}/mcf5206 source: - bsps/m68k/include/mcf5206/mcf5206e.h diff --git a/spec/build/bsps/microblaze/grp.yml b/spec/build/bsps/microblaze/grp.yml index 9be8ce6172..493df0aa63 100644 --- a/spec/build/bsps/microblaze/grp.yml +++ b/spec/build/bsps/microblaze/grp.yml @@ -10,7 +10,8 @@ includes: [] install: - destination: ${BSP_INCLUDEDIR}/bsp source: - - bsps/microblaze/include/bsp/linker-symbols.h + - bsps/include/bsp/linker-symbols.h + - bsps/microblaze/include/bsp/linker-symbols-arch.h ldflags: [] links: [] type: build diff --git a/spec/build/bsps/or1k/grp.yml b/spec/build/bsps/or1k/grp.yml index 6a6836d260..f4f99fbfc2 100644 --- a/spec/build/bsps/or1k/grp.yml +++ b/spec/build/bsps/or1k/grp.yml @@ -10,7 +10,8 @@ includes: [] install: - destination: ${BSP_INCLUDEDIR}/bsp source: - - bsps/or1k/include/bsp/linker-symbols.h + - bsps/include/bsp/linker-symbols.h + - bsps/or1k/include/bsp/linker-symbols-arch.h ldflags: [] links: [] type: build diff --git a/spec/build/bsps/powerpc/grp.yml b/spec/build/bsps/powerpc/grp.yml index 5214973d1a..0bd18d7b67 100644 --- a/spec/build/bsps/powerpc/grp.yml +++ b/spec/build/bsps/powerpc/grp.yml @@ -17,6 +17,7 @@ install: - bsps/powerpc/include/nvram.h - destination: ${BSP_INCLUDEDIR}/bsp source: + - bsps/include/bsp/linker-symbols.h - bsps/powerpc/include/bsp/VME.h - bsps/powerpc/include/bsp/VMEDMA.h - bsps/powerpc/include/bsp/bspVmeDmaList.h @@ -24,7 +25,7 @@ install: - bsps/powerpc/include/bsp/flashPgm.h - bsps/powerpc/include/bsp/flashPgmPvt.h - bsps/powerpc/include/bsp/irq_supp.h - - bsps/powerpc/include/bsp/linker-symbols.h + - bsps/powerpc/include/bsp/linker-symbols-arch.h - bsps/powerpc/include/bsp/motorola.h - bsps/powerpc/include/bsp/openpic.h - bsps/powerpc/include/bsp/pci.h diff --git a/spec/build/bsps/riscv/grp.yml b/spec/build/bsps/riscv/grp.yml index ac7027a44d..594eda8e6e 100644 --- a/spec/build/bsps/riscv/grp.yml +++ b/spec/build/bsps/riscv/grp.yml @@ -10,7 +10,8 @@ includes: [] install: - destination: ${BSP_INCLUDEDIR}/bsp source: - - bsps/riscv/include/bsp/linker-symbols.h + - bsps/include/bsp/linker-symbols.h + - bsps/riscv/include/bsp/linker-symbols-arch.h ldflags: [] links: [] type: build