Hello,
unfortunately, there is no way, how to place variables in RAM together. Only possibility is add __attribute__ to every single variable. I know, this is not comfort way, unfortunately this is only way.
Sorry for any inconvenience.
Regards,
Martin