To expand on that, SRAM is usually initialized in the startup code.
Most regions are cleared (to zero), others are initialized with constant data from Flash, according to the linker script settings.
If one want to change this behavior, this would be the place to implement it, i.e. the startup code in connection with the linker script and section definitions.