llvm.global_ctors

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...

No, the order to static ctors is undefined. There is special
"priority" attribute though. I don't remember whether we honor it or
not...

http://llvm.org/bugs/show_bug.cgi?id=5329