[rtems commit] sptests/splinkersets01: Fix for small-data area

Sebastian Huber sebh at rtems.org
Wed Aug 10 08:00:30 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Aug 10 09:54:13 2016 +0200

sptests/splinkersets01: Fix for small-data area

---

 testsuites/sptests/splinkersets01/items.c          | 12 ++++++------
 testsuites/sptests/splinkersets01/splinkersets01.h | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/testsuites/sptests/splinkersets01/items.c b/testsuites/sptests/splinkersets01/items.c
index d230ce1..4773113 100644
--- a/testsuites/sptests/splinkersets01/items.c
+++ b/testsuites/sptests/splinkersets01/items.c
@@ -22,10 +22,10 @@ RTEMS_LINKER_RWSET_ITEM_ORDERED(test_rw, const int *, a1, 1) = &a[1];
 
 RTEMS_LINKER_ROSET_ITEM_ORDERED(test_ro, const int *, ca2, OC) = &ca[2];
 
-RTEMS_LINKER_RWSET_CONTENT(test_content_rw, int content_rw_1);
-RTEMS_LINKER_RWSET_CONTENT(test_content_rw, char content_rw_2);
-RTEMS_LINKER_RWSET_CONTENT(test_content_rw, char content_rw_3);
+int content_rw_1;
+char content_rw_2;
+char content_rw_3;
 
-RTEMS_LINKER_ROSET_CONTENT(test_content_ro, const int content_ro_1);
-RTEMS_LINKER_ROSET_CONTENT(test_content_ro, const char content_ro_2);
-RTEMS_LINKER_ROSET_CONTENT(test_content_ro, const char content_ro_3);
+const int content_ro_1;
+const char content_ro_2;
+const char content_ro_3;
diff --git a/testsuites/sptests/splinkersets01/splinkersets01.h b/testsuites/sptests/splinkersets01/splinkersets01.h
index 8ebf894..10b4670 100644
--- a/testsuites/sptests/splinkersets01/splinkersets01.h
+++ b/testsuites/sptests/splinkersets01/splinkersets01.h
@@ -37,13 +37,13 @@ RTEMS_LINKER_RWSET_ITEM_DECLARE(test_rw, const int *, a1);
 
 RTEMS_LINKER_ROSET_ITEM_DECLARE(test_ro, const int *, ca2);
 
-extern int content_rw_1;
-extern char content_rw_2;
-extern char content_rw_3;
+RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern int content_rw_1);
+RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_2);
+RTEMS_LINKER_RWSET_CONTENT(test_content_rw, extern char content_rw_3);
 
-extern const int content_ro_1;
-extern const char content_ro_2;
-extern const char content_ro_3;
+RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const int content_ro_1);
+RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_2);
+RTEMS_LINKER_ROSET_CONTENT(test_content_ro, extern const char content_ro_3);
 
 #ifdef __cplusplus
 }



More information about the vc mailing list