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
346cbb6f
Commit
346cbb6f
authored
May 04, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
May 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Add entry symbol underscore when building linker command.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
964cb1ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
winegcc.c
tools/winegcc/winegcc.c
+6
-8
No files found.
tools/winegcc/winegcc.c
View file @
346cbb6f
...
...
@@ -1185,14 +1185,9 @@ static void build(struct options* opts)
if
(
!
opts
->
entry_point
)
{
if
(
opts
->
subsystem
&&
!
strcmp
(
opts
->
subsystem
,
"native"
))
entry_point
=
(
is_pe
&&
opts
->
target_cpu
==
CPU_x86
)
?
"
_
DriverEntry@8"
:
"DriverEntry"
;
entry_point
=
(
is_pe
&&
opts
->
target_cpu
==
CPU_x86
)
?
"DriverEntry@8"
:
"DriverEntry"
;
else
if
(
opts
->
use_msvcrt
&&
!
opts
->
shared
&&
!
opts
->
win16_app
)
{
if
(
opts
->
unicode_app
)
entry_point
=
(
is_pe
&&
opts
->
target_cpu
==
CPU_x86
)
?
"_wmainCRTStartup"
:
"wmainCRTStartup"
;
else
entry_point
=
(
is_pe
&&
opts
->
target_cpu
==
CPU_x86
)
?
"_mainCRTStartup"
:
"mainCRTStartup"
;
}
entry_point
=
opts
->
unicode_app
?
"wmainCRTStartup"
:
"mainCRTStartup"
;
else
if
(
!
is_pe
&&
!
opts
->
shared
&&
opts
->
unicode_app
)
entry_point
=
"__wine_spec_exe_wentry"
;
}
...
...
@@ -1297,7 +1292,10 @@ static void build(struct options* opts)
for
(
j
=
0
;
j
<
lib_dirs
->
size
;
j
++
)
strarray_add
(
link_args
,
strmake
(
"-L%s"
,
lib_dirs
->
base
[
j
]));
if
(
is_pe
&&
entry_point
)
strarray_add
(
link_args
,
strmake
(
"-Wl,--entry,%s"
,
entry_point
));
if
(
is_pe
&&
entry_point
)
strarray_add
(
link_args
,
strmake
(
"-Wl,--entry,%s%s"
,
is_pe
&&
opts
->
target_cpu
==
CPU_x86
?
"_"
:
""
,
entry_point
));
strarray_add
(
link_args
,
spec_o_name
);
...
...
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