dlpreopening not working for __stdcall functions

2018-08-08 Thread Carlos Sánchez de La Lama
Hi all, it seems stdcall function decorations prevent those symbols to be recognized in func_generate_dlsyms. I attach a small example of this (only can be replicated on win32 hosts, I am using mingw32). The makefile generates 4 files: loader -> works loader_static -> works (dlpreloads the module

Re: dlpreopening not working for __stdcall functions

2018-08-08 Thread Carlos Sánchez de La Lama
I somehow sent it before attaching the files :S Makefile Description: Binary data #include #include "ltdl.h" #ifdef STDCALL #define MODULE_STDCALL __stdcall #define MODULE_SUFFIX "_stdcall" #else #define MODULE_STDCALL #define MODULE_SUFFIX "" #endif #define module_foo (*module_foo_p) static