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
Seemingly Similar Threads
- [LLVMdev] llvm.global_ctors
- [LLVMdev] llvm.global_ctors and other "appending linkage" global variables?
- llvm-link: why link '@llvm.global_ctors' into dest file even it's not used in dest file?
- [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)