The static variables in an exe go into data segment of the process and initized at the start up of the process.
So, if my process dynamically load a library, which has static variables using dlopen or something, to which segment these static variables will be mapped to. Also when these static variables will be initialized?
My understanding is that data segment in a process is fixed and cannot grow unlike stack or heap. Am i correct?