[rtems commit] Fix RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE()

Sebastian Huber sebh at rtems.org
Mon Jan 25 05:44:56 UTC 2021


Module:    rtems
Branch:    master
Commit:    c709017efba6de38225afc697a5ed2381cc12071
Changeset: http://git.rtems.org/rtems/commit/?id=c709017efba6de38225afc697a5ed2381cc12071

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jan 25 06:39:55 2021 +0100

Fix RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE()

Add "extern" similar to RTEMS_LINKER_RWSET_ITEM_ORDERED_DECLARE().

Close #4221.

---

 cpukit/include/rtems/linkersets.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/include/rtems/linkersets.h b/cpukit/include/rtems/linkersets.h
index 844130f..d3ed760 100644
--- a/cpukit/include/rtems/linkersets.h
+++ b/cpukit/include/rtems/linkersets.h
@@ -38,7 +38,7 @@ extern "C" {
   RTEMS_SECTION( ".rtemsroset." #set ".end" ) RTEMS_USED
 
 #define RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE( set, type, item, order ) \
-  type const _Linker_set_##set##_##item \
+  extern type const _Linker_set_##set##_##item \
   RTEMS_SECTION( ".rtemsroset." #set ".content.0." RTEMS_XSTRING( order ) )
 
 #define RTEMS_LINKER_ROSET_ITEM_DECLARE( set, type, item ) \



More information about the vc mailing list