From f615db63323905da6bdff735c1c717e33e3024fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@beauzee.fr> Date: Tue, 24 Jul 2018 17:37:53 +0200 Subject: [PATCH] winvlc: Work around lack of relocation table in vlc.exe --- bin/winvlc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/winvlc.c b/bin/winvlc.c index 8e072106f68c..e576547dc4f7 100644 --- a/bin/winvlc.c +++ b/bin/winvlc.c @@ -111,6 +111,10 @@ static void PrioritizeSystem32(void) SetProcessMitigationPolicy( 10 /* ProcessImageLoadPolicy */, &m, sizeof( m ) ); } +/* + * Export WinMain to force GNU ld to generate a .reloc section + */ +__declspec(dllexport) int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) -- GitLab