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
0e4d22bd
Commit
0e4d22bd
authored
Jul 23, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegc: Support overriding the default PE file alignment.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e36bed4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
winegcc.c
tools/winegcc/winegcc.c
+8
-1
No files found.
tools/winegcc/winegcc.c
View file @
0e4d22bd
...
...
@@ -223,6 +223,7 @@ struct options
const
char
*
output_name
;
const
char
*
image_base
;
const
char
*
section_align
;
const
char
*
file_align
;
const
char
*
sysroot
;
const
char
*
isysroot
;
const
char
*
lib_suffix
;
...
...
@@ -522,7 +523,8 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
strarray_add
(
link_args
,
strmake
(
"-Wl,-pdb,%s"
,
opts
->
debug_file
));
if
(
!
try_link
(
opts
->
prefix
,
link_args
,
"-Wl,--file-alignment,0x1000"
))
strarray_add
(
link_args
,
"-Wl,--file-alignment,0x1000"
);
strarray_add
(
link_args
,
strmake
(
"-Wl,--file-alignment,%s"
,
opts
->
file_align
?
opts
->
file_align
:
"0x1000"
));
strarray_addall
(
link_args
,
flags
);
return
link_args
;
...
...
@@ -1918,6 +1920,11 @@ int main(int argc, char **argv)
opts
.
section_align
=
strdup
(
Wl
->
base
[
++
j
]
);
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"--file-alignment"
)
&&
j
<
Wl
->
size
-
1
)
{
opts
.
file_align
=
strdup
(
Wl
->
base
[
++
j
]
);
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"--large-address-aware"
))
{
opts
.
large_address_aware
=
1
;
...
...
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