summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-08-29 08:53:22 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-08-29 08:53:22 +0200
commit3d2fbaf4a3a20a166b0488b6df5579210b980167 (patch)
tree31b3c73721c8a8058cfcf3b01a1dc29a04ddc0ae /cpukit/include/rtems
parentlibdebugger/aarch64: Set .start section to RW (diff)
downloadrtems-3d2fbaf4a3a20a166b0488b6df5579210b980167.tar.bz2
Revert "linkersets.h: Fix gcc 12 warning"
This reverts commit f930206724e65f188fe3b095826ceb1b11000f65. The linker set begin must be a symbol and not a zero-initialized item.
Diffstat (limited to 'cpukit/include/rtems')
-rw-r--r--cpukit/include/rtems/linkersets.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/include/rtems/linkersets.h b/cpukit/include/rtems/linkersets.h
index 45f9dc1ef7..cdfcd54cde 100644
--- a/cpukit/include/rtems/linkersets.h
+++ b/cpukit/include/rtems/linkersets.h
@@ -92,7 +92,7 @@ extern "C" {
extern RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_END( set )[]
#define RTEMS_LINKER_RWSET( set, type ) \
- RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_BEGIN( set )[ 1 ] \
+ RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_BEGIN( set )[ 0 ] \
RTEMS_SECTION( ".rtemsrwset." #set ".begin" ) RTEMS_USED; \
RTEMS_LINKER_SET_ALIGN( type ) type RTEMS_LINKER_SET_END( set )[ 0 ] \
RTEMS_SECTION( ".rtemsrwset." #set ".end" ) RTEMS_USED