late loader_init() breaks private library isolation on Windows
From derek.br...@gmail.com on August 20, 2010 12:40:00
r407 , for issue #157 (closed) , moved loader_init() to after arch_init(). this means that should_swap_peb_pointer() ends up always being false when emitting context switch routines, because loaded_windows_lib is not yet set. this breaks private library isolation on Windows and causes problems.
this is blocking current work so I may move loader_init() back up immediately, with a longer-term solution that also works w/ the in-progress linux loader coming in later
Original issue: http://code.google.com/p/dynamorio/issues/detail?id=338