diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-28 08:20:25 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-28 08:21:57 +0200 |
commit | 6a6580331df3e09516d50f37d4dd5fd57825c08a (patch) | |
tree | d36f19c6f554645074a75b9efe1389a590ac425c /cpukit/include/rtems/score/thread.h | |
parent | score: Use PTHREAD_CANCELED for _Thread_Cancel() (diff) | |
download | rtems-6a6580331df3e09516d50f37d4dd5fd57825c08a.tar.bz2 |
score: Allow linker garbage collection
Place the object control blocks in dedicated sections to allow a linker garbage
collection.
Update #4678.
Diffstat (limited to 'cpukit/include/rtems/score/thread.h')
-rw-r--r-- | cpukit/include/rtems/score/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/include/rtems/score/thread.h b/cpukit/include/rtems/score/thread.h index 16430347af..40fefbc79a 100644 --- a/cpukit/include/rtems/score/thread.h +++ b/cpukit/include/rtems/score/thread.h @@ -1151,10 +1151,10 @@ Objects_Control *_Thread_Allocate_unlimited( Objects_Information *information ); #define THREAD_INFORMATION_DEFINE( name, api, cls, max ) \ static Objects_Control * \ name##_Local_table[ _Objects_Maximum_per_allocation( max ) ]; \ -static RTEMS_SECTION( ".noinit.rtems.content.objects" ) \ +static RTEMS_SECTION( ".noinit.rtems.content.objects." #name ) \ Thread_Configured_control \ name##_Objects[ _Objects_Maximum_per_allocation( max ) ]; \ -static RTEMS_SECTION( ".noinit.rtems.content.objects" ) \ +static RTEMS_SECTION( ".noinit.rtems.content.objects." #name ) \ Thread_queue_Configured_heads \ name##_Heads[ _Objects_Maximum_per_allocation( max ) ]; \ Thread_Information name##_Information = { \ |