http://bugs.winehq.org/show_bug.cgi?id=14364
Summary: enhance loader and wine_main_preload_info for valgrind Product: Wine Version: 1.0.0 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: loader AssignedTo: wine-bugs@winehq.org ReportedBy: jreiser@BitWagon.com
Created an attachment (id=14661) --> (http://bugs.winehq.org/attachment.cgi?id=14661) loader co-operates with valgrind about wine_main_preload_info
wine-loader can co-operate with valgrind and other debugging tools.
1) New Elf32_auxv_t tag AT_WINE_PRELOAD_INFO for when symbol wine_main_preload_info is not visible, especially valgrind tools. binutils is not your friend: "ld: --export-dynamic fails if no undefined symbols" http://sourceware.org/bugzilla/show_bug.cgi?id=6468 2) Store pathname of pre-loader at end of wine_main_preload_info, in the .addr of the terminating 0==.size. This allows easy co-operation with valgrind tools and other debuggers. 3) Pending linux kernel patch for Elf32_auxv_t tag AT_EXECFN simplifies co-operation and virtualization in general. LKML, 2008-05-01, "execve filename: document and export via auxiliary vector".
Patch is attached, and will be sent to wine-patches@winehq.org.