Hi, I had a question regarding global symbols and linking order. Our project has a lot of global symbols which are kind of interdependent on each other. These are in different source files. So if the order in which they are initialized is not correct, then the process fails to come up.
One option is to move all the global initializations to one source file, so that the order of initialization is guaranteed. The second option is to specify the linker to pick up the source files in specific order, (either passing them in the appropriate order to ld or using a linker script). Which is a better option to go to and how safe is it to depend on the linker order. Thanks, Sampath.