https://bugs.winehq.org/show_bug.cgi?id=45199
Roman Kagan rkagan@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rkagan@mail.ru
--- Comment #58 from Roman Kagan rkagan@mail.ru --- I'm still seeing patching failures from tcmalloc with WoT on my Fedora29 like this: https://forum.winehq.org/viewtopic.php?f=8&t=31272
AFAICS on Fedora wine libraries are built with -fcf-protection making gcc emit endbr32 (endbr64 for 64bit) as the very first instruction of every function, which confuses the perftools/tcmalloc patcher.
Per https://github.com/gperftools/gperftools/blob/master/src/windows/patch_funct..., the list of functions it patches is
in libc:
malloc [*] free realloc calloc operator new operator new[] operator delete operator delete[] _msize [*] _expand _calloc_crt _free_base [*] _free_dbg
in kernel32:
HeapAlloc [*] HeapFree [*] VirtualAllocEx [*] VirtualFreeEx [*] MapViewOfFileEx [*] UnmapViewOfFile LoadLibraryExW FreeLibrary
[*] are those still lacking DECLSPEC_HOTPATCH as of 3.19.
Should I reopen this bug or file a new one?