Commit fec5f5cf authored by Alexandre Julliard's avatar Alexandre Julliard

winebuild: Implement a --large-address-aware flag.

parent 2deeb1c7
...@@ -222,6 +222,7 @@ static const char usage_str[] = ...@@ -222,6 +222,7 @@ static const char usage_str[] =
" -I DIR Ignored for C flags compatibility\n" " -I DIR Ignored for C flags compatibility\n"
" -k, --kill-at Kill stdcall decorations in generated .def files\n" " -k, --kill-at Kill stdcall decorations in generated .def files\n"
" -K, FLAGS Compiler flags (only -KPIC is supported)\n" " -K, FLAGS Compiler flags (only -KPIC is supported)\n"
" --large-address-aware Support an address space larger than 2Gb\n"
" --ld-cmd=LD Command to use for linking (default: ld)\n" " --ld-cmd=LD Command to use for linking (default: ld)\n"
" -l, --library=LIB Import the specified library\n" " -l, --library=LIB Import the specified library\n"
" -L, --library-path=DIR Look for imports libraries in DIR\n" " -L, --library-path=DIR Look for imports libraries in DIR\n"
...@@ -254,6 +255,7 @@ enum long_options_values ...@@ -254,6 +255,7 @@ enum long_options_values
LONG_OPT_EXE, LONG_OPT_EXE,
LONG_OPT_ASCMD, LONG_OPT_ASCMD,
LONG_OPT_EXTERNAL_SYMS, LONG_OPT_EXTERNAL_SYMS,
LONG_OPT_LARGE_ADDRESS_AWARE,
LONG_OPT_LDCMD, LONG_OPT_LDCMD,
LONG_OPT_NMCMD, LONG_OPT_NMCMD,
LONG_OPT_NXCOMPAT, LONG_OPT_NXCOMPAT,
...@@ -274,6 +276,7 @@ static const struct option long_options[] = ...@@ -274,6 +276,7 @@ static const struct option long_options[] =
{ "exe", 0, 0, LONG_OPT_EXE }, { "exe", 0, 0, LONG_OPT_EXE },
{ "as-cmd", 1, 0, LONG_OPT_ASCMD }, { "as-cmd", 1, 0, LONG_OPT_ASCMD },
{ "external-symbols", 0, 0, LONG_OPT_EXTERNAL_SYMS }, { "external-symbols", 0, 0, LONG_OPT_EXTERNAL_SYMS },
{ "large-address-aware", 0, 0, LONG_OPT_LARGE_ADDRESS_AWARE },
{ "ld-cmd", 1, 0, LONG_OPT_LDCMD }, { "ld-cmd", 1, 0, LONG_OPT_LDCMD },
{ "nm-cmd", 1, 0, LONG_OPT_NMCMD }, { "nm-cmd", 1, 0, LONG_OPT_NMCMD },
{ "nxcompat", 1, 0, LONG_OPT_NXCOMPAT }, { "nxcompat", 1, 0, LONG_OPT_NXCOMPAT },
...@@ -451,6 +454,9 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec ) ...@@ -451,6 +454,9 @@ static char **parse_options( int argc, char **argv, DLLSPEC *spec )
case LONG_OPT_EXTERNAL_SYMS: case LONG_OPT_EXTERNAL_SYMS:
link_ext_symbols = 1; link_ext_symbols = 1;
break; break;
case LONG_OPT_LARGE_ADDRESS_AWARE:
spec->characteristics |= IMAGE_FILE_LARGE_ADDRESS_AWARE;
break;
case LONG_OPT_LDCMD: case LONG_OPT_LDCMD:
ld_command = xstrdup( optarg ); ld_command = xstrdup( optarg );
break; break;
......
...@@ -137,6 +137,10 @@ generated .def file. Only meaningful in \fB--def\fR mode. ...@@ -137,6 +137,10 @@ generated .def file. Only meaningful in \fB--def\fR mode.
.BI \-K\ flags .BI \-K\ flags
Ignored for compatibility with the C compiler. Ignored for compatibility with the C compiler.
.TP .TP
.BI \--large-address-aware
Set a flag in the executable to notify the loader that this
application supports address spaces larger than 2 gigabytes.
.TP
.BI \--ld-cmd= ld-command .BI \--ld-cmd= ld-command
Specify the command to use to link the object files; the default is Specify the command to use to link the object files; the default is
\fBld\fR. \fBld\fR.
......
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