On 30/04/2021 15:34, Sebastian Huber wrote:

On 30/04/2021 15:32, Hesham Almatary wrote:

    The noinit attributes is a bit broken in GCC:

I guess we can go for a separate custom section then? Or we can just assign it a magic value so that it doesn’t go into BSS.

I propose to add something like this:

+/* Generated from spec:/rtems/basedefs/if/noinit */
+
+/**
+ * @ingroup RTEMSAPIBaseDefs
+ *
+ * @brief Instructs the compiler to place the variable in a section which is
+ *   not initialized.
+ */
+#define RTEMS_NOINIT RTEMS_SECTION( ".noinit" )

I work currently on a support for this in the linker command files.

I checked in the .noinit support. Could you please check if this patch fixes the problem:

https://lists.rtems.org/pipermail/devel/2021-May/067005.html

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to