[PATCH] [ASan/Win] Fix PR22545 __asan_unregister_globals is not called when using -MD runtimes

Timur Iskhodzhanov timurrrr at google.com
Wed Feb 18 11:45:25 PST 2015


The condition is link-time (i.e. later than compile-time but earlier than
run-time)

On Wed Feb 18 2015 at 10:45:01 PM Timur Iskhodzhanov <timurrrr at google.com>
wrote:

> I don't quite understand your proposal.
>
> Is it
> a) leave the instrumentation without any changes
> b) in the RTL, make __asan_unregister_global a no-op on Windows
> c) in the RTL, make __asan_register_global call atexit() to schedule
> asan::UnregisterGlobal?
>
> Or am I missing something?
>
> Please note atexit() does not allow one to pass arguments/context to the
> callee function.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150218/62678c67/attachment.html>


More information about the llvm-commits mailing list