[LLVMdev] llvm.global_ctors

Anton Korobeynikov anton at korobeynikov.info
Fri Nov 6 12:03:13 PST 2009


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



More information about the llvm-dev mailing list