[PATCH 0/1] MR9107: winegcc: Forward large address aware flag with platform windows.
My llvm-mingw seem to ignore the `-Wl,--large-address-aware` flag e.g. in programs/iexplore/Makefile.in. I found `winegcc` takes for this toolchain the PLATFORM_WINDOWS branch which misses the large-address-aware lines. With this patch my build shows the flag also in the llvm-mingw build. ``` $ i686-w64-mingw32-objdump --private-headers programs/iexplore/i386-windows/iexplore.exe | grep -E "^Characteristics" -A6 Characteristics 0x122 executable large address aware 32 bit words ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9107
From: Bernhard Übelacker <bernhardu(a)mailbox.org> --- tools/winegcc/winegcc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 374f7542cf3..d8d5671ce95 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -603,6 +603,10 @@ static struct strarray get_link_args( const char *output_name ) if (is_unicode_app) strarray_add( &flags, "-municode" ); if (nostartfiles) strarray_add( &flags, "-nostartfiles" ); if (image_base) strarray_add( &flags, strmake("-Wl,-base:%s", image_base )); + + if (large_address_aware && target.cpu == CPU_i386) + strarray_add( &flags, "-Wl,-largeaddressaware" ); + if (entry_point) strarray_add( &flags, strmake( "-Wl,-entry:%s", entry_point )); if (subsystem) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9107
participants (1)
-
Bernhard Übelacker