Thanks for the reply! Yes, that's exactly what I'm doing. The problem is just that the value of the variable will just be copied - I want the dynamil linker to link against the exact same memory-location so that when one file updates the variable will this be reflected in all other files. Currently does ld produce R_386_COPY relocation entries in the executable files - which is not what I want. I'v tried to run ld with -z nocopyreloc, but this just makes each file to have an own instance of the variable (even without copying the value). -- View this message in context: http://www.nabble.com/Shared-variables-%28between-ELF-executables%29-t1323226.html#a3530718 Sent from the gcc - Help forum at Nabble.com.