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
7b086047
Commit
7b086047
authored
Jun 17, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Add support for the -Wl,--large-address-aware option.
parent
fec5f5cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
winegcc.c
tools/winegcc/winegcc.c
+9
-0
No files found.
tools/winegcc/winegcc.c
View file @
7b086047
...
...
@@ -193,6 +193,7 @@ struct options
int
unicode_app
;
int
compile_only
;
int
force_pointer_size
;
int
large_address_aware
;
const
char
*
wine_objdir
;
const
char
*
output_name
;
const
char
*
image_base
;
...
...
@@ -704,6 +705,8 @@ static void build(struct options* opts)
if
(
opts
->
image_base
)
strarray_add
(
link_args
,
strmake
(
"-Wl,--image-base,%s"
,
opts
->
image_base
));
if
(
opts
->
large_address_aware
)
strarray_add
(
link_args
,
"-Wl,--large-address-aware"
);
if
(
opts
->
unicode_app
&&
!
opts
->
shared
)
strarray_add
(
link_args
,
mingw_unicode_hack
(
opts
));
...
...
@@ -818,6 +821,7 @@ static void build(struct options* opts)
strarray_add
(
spec_args
,
"--entry"
);
strarray_add
(
spec_args
,
"__wine_spec_exe_wentry"
);
}
if
(
opts
->
large_address_aware
)
strarray_add
(
spec_args
,
"--large-address-aware"
);
}
for
(
j
=
0
;
j
<
lib_dirs
->
size
;
j
++
)
...
...
@@ -1271,6 +1275,11 @@ int main(int argc, char **argv)
opts
.
section_align
=
strdup
(
Wl
->
base
[
++
j
]
);
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"--large-address-aware"
))
{
opts
.
large_address_aware
=
1
;
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"-static"
))
linking
=
-
1
;
strarray_add
(
opts
.
linker_args
,
strmake
(
"-Wl,%s"
,
Wl
->
base
[
j
]));
}
...
...
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