Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fec5f5cf
Commit
fec5f5cf
authored
Jun 17, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Implement a --large-address-aware flag.
parent
2deeb1c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
37 deletions
+47
-37
main.c
tools/winebuild/main.c
+43
-37
winebuild.man.in
tools/winebuild/winebuild.man.in
+4
-0
No files found.
tools/winebuild/main.c
View file @
fec5f5cf
...
@@ -207,44 +207,45 @@ static void exit_on_signal( int sig )
...
@@ -207,44 +207,45 @@ static void exit_on_signal( int sig )
static
const
char
usage_str
[]
=
static
const
char
usage_str
[]
=
"Usage: winebuild [OPTIONS] [FILES]
\n\n
"
"Usage: winebuild [OPTIONS] [FILES]
\n\n
"
"Options:
\n
"
"Options:
\n
"
" --as-cmd=AS Command to use for assembling (default: as)
\n
"
" --as-cmd=AS Command to use for assembling (default: as)
\n
"
" -b, --target=TARGET Specify target CPU and platform for cross-compiling
\n
"
" -b, --target=TARGET Specify target CPU and platform for cross-compiling
\n
"
" -d, --delay-lib=LIB Import the specified library in delayed mode
\n
"
" -d, --delay-lib=LIB Import the specified library in delayed mode
\n
"
" -D SYM Ignored for C flags compatibility
\n
"
" -D SYM Ignored for C flags compatibility
\n
"
" -e, --entry=FUNC Set the DLL entry point function (default: DllMain)
\n
"
" -e, --entry=FUNC Set the DLL entry point function (default: DllMain)
\n
"
" -E, --export=FILE Export the symbols defined in the .spec or .def file
\n
"
" -E, --export=FILE Export the symbols defined in the .spec or .def file
\n
"
" --external-symbols Allow linking to external symbols
\n
"
" --external-symbols Allow linking to external symbols
\n
"
" -f FLAGS Compiler flags (only -fPIC is supported)
\n
"
" -f FLAGS Compiler flags (only -fPIC is supported)
\n
"
" -F, --filename=DLLFILE Set the DLL filename (default: from input file name)
\n
"
" -F, --filename=DLLFILE Set the DLL filename (default: from input file name)
\n
"
" -h, --help Display this help message
\n
"
" -h, --help Display this help message
\n
"
" -H, --heap=SIZE Set the heap size for a Win16 dll
\n
"
" -H, --heap=SIZE Set the heap size for a Win16 dll
\n
"
" -i, --ignore=SYM[,SYM] Ignore specified symbols when resolving imports
\n
"
" -i, --ignore=SYM[,SYM] Ignore specified symbols when resolving imports
\n
"
" -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
"
" --ld-cmd=LD Command to use for linking (default: ld)
\n
"
" --large-address-aware Support an address space larger than 2Gb
\n
"
" -l, --library=LIB Import the specified library
\n
"
" --ld-cmd=LD Command to use for linking (default: ld)
\n
"
" -L, --library-path=DIR Look for imports libraries in DIR
\n
"
" -l, --library=LIB Import the specified library
\n
"
" -m32, -m64 Force building 32-bit resp. 64-bit code
\n
"
" -L, --library-path=DIR Look for imports libraries in DIR
\n
"
" -M, --main-module=MODULE Set the name of the main module for a Win16 dll
\n
"
" -m32, -m64 Force building 32-bit resp. 64-bit code
\n
"
" --nm-cmd=NM Command to use to get undefined symbols (default: nm)
\n
"
" -M, --main-module=MODULE Set the name of the main module for a Win16 dll
\n
"
" --nxcompat=y|n Set the NX compatibility flag (default: yes)
\n
"
" --nm-cmd=NM Command to use to get undefined symbols (default: nm)
\n
"
" -N, --dll-name=DLLNAME Set the DLL name (default: from input file name)
\n
"
" --nxcompat=y|n Set the NX compatibility flag (default: yes)
\n
"
" -o, --output=NAME Set the output file name (default: stdout)
\n
"
" -N, --dll-name=DLLNAME Set the DLL name (default: from input file name)
\n
"
" -r, --res=RSRC.RES Load resources from RSRC.RES
\n
"
" -o, --output=NAME Set the output file name (default: stdout)
\n
"
" --save-temps Do not delete the generated intermediate files
\n
"
" -r, --res=RSRC.RES Load resources from RSRC.RES
\n
"
" --subsystem=SUBSYS Set the subsystem (one of native, windows, console)
\n
"
" --save-temps Do not delete the generated intermediate files
\n
"
" -u, --undefined=SYMBOL Add an undefined reference to SYMBOL when linking
\n
"
" --subsystem=SUBSYS Set the subsystem (one of native, windows, console)
\n
"
" -v, --verbose Display the programs invoked
\n
"
" -u, --undefined=SYMBOL Add an undefined reference to SYMBOL when linking
\n
"
" --version Print the version and exit
\n
"
" -v, --verbose Display the programs invoked
\n
"
" -w, --warnings Turn on warnings
\n
"
" --version Print the version and exit
\n
"
" -w, --warnings Turn on warnings
\n
"
"
\n
Mode options:
\n
"
"
\n
Mode options:
\n
"
" --dll Build a .c file from a .spec or .def file
\n
"
" --dll
Build a .c file from a .spec or .def file
\n
"
" --def Build a .def file from a .spec file
\n
"
" --def
Build a .def file from a .spec file
\n
"
" --exe Build a .c file for an executable
\n
"
" --exe
Build a .c file for an executable
\n
"
" --relay16 Build the 16-bit relay assembly routines
\n
"
" --relay16
Build the 16-bit relay assembly routines
\n
"
" --relay32 Build the 32-bit relay assembly routines
\n\n
"
" --relay32
Build the 32-bit relay assembly routines
\n\n
"
" --resources Build a .o file for the resource files
\n\n
"
" --resources
Build a .o file for the resource files
\n\n
"
"The mode options are mutually exclusive; you must specify one and only one.
\n\n
"
;
"The mode options are mutually exclusive; you must specify one and only one.
\n\n
"
;
enum
long_options_values
enum
long_options_values
...
@@ -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
;
...
...
tools/winebuild/winebuild.man.in
View file @
fec5f5cf
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment