If someone has some static data somewhere, be it in tls or marked shared __gshared or immutable or combinations (whatever), and someone takes the address of it and pass that address to some other routine of mine that does not have access to the source code of the original definition of the object in question, then is it possible to just use 'the address' passed without knowing anything about that data? I'm assuming that the answer might also depend on compilers, machine architectures and operating systems?

If this kind of assumption is very ill-advised, is there anything written up about implementation details in different operating systems / compilers ?

Reply via email to