It needs the data in a separate ELF section (which may be user defined or you could use a linker script) and a memory access policy for this section - not strictly global vars.
-
-
-
Data in a section is inherently a singleton aka global var. It doesn't matter how you created it. The actual data that needs protection all has allocated and automatic (stack) storage.
-
If your proposal for mitigating Spectre is to go back to using global variables for everything, that's a complete non-starter.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.