When you link two modules each of which contains a global_ctors array, is there a guarantee as to what order they'll run in?
Hello, Kenneth> When you link two modules each of which contains a global_ctors array, > is there a guarantee as to what order they'll run in?No, the order to static ctors is undefined. There is special "priority" attribute though. I don't remember whether we honor it or not... -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Apparently Analagous Threads
- [LLVMdev] llvm.global_ctors
- [LLVMdev] Question about ctors, dtors and sections on Windows
- [LLVMdev] llvm.global_ctors and other "appending linkage" global variables?
- [LLVMdev] Inconsistent third field in global_ctors (was Re: [llvm] r214321 - UseListOrder: Visit global values)
- [LLVMdev] Inconsistent third field in global_ctors (was Re: [llvm] r214321 - UseListOrder: Visit global values)