On Wed, Feb 13, 2013 at 04:19:14PM +0100, Jakub Jelinek wrote: > > The reexec is problematic, what if the program already in constructors run > before __asan_init (perhaps ctors of other libraries etc.) does something > that really shouldn't be done twice? >
Jakub, Wouldn't sorting all of the constructors and destructors by priority, while retaining the original order, in collect2 solve this issue (as was proposed for implementing intra-modular init priority support on darwin)? Jack