Commit b0908666 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winegcc: Disable exporting all symbols on mingw targets.

Mingw targets export all symbols by default if there is no explicit export. We generate export table in winebuild and don't use explicit exports. This may make linker generate an unused export-all table. Spotted by Gabriel Ivăncescu.
parent 7b9d0a1b
......@@ -407,6 +407,7 @@ static struct strarray get_link_args( struct options *opts, const char *output_n
if (opts->nostartfiles || opts->use_msvcrt) strarray_add( &flags, "-nostartfiles" );
if (opts->subsystem) strarray_add( &flags, strmake("-Wl,--subsystem,%s", opts->subsystem ));
strarray_add( &flags, "-Wl,--exclude-all-symbols" );
strarray_add( &flags, "-Wl,--nxcompat" );
if (opts->image_base) strarray_add( &flags, strmake("-Wl,--image-base,%s", opts->image_base ));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment