[rtems commit] Fix RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE()
Sebastian Huber
sebh at rtems.org
Mon Jan 25 05:48:14 UTC 2021
Module: rtems
Branch: 5
Commit: 5ae7ec94773478b5d57bf20592d94deb789d372b
Changeset: http://git.rtems.org/rtems/commit/?id=5ae7ec94773478b5d57bf20592d94deb789d372b
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 #4224.
---
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