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
b1fe783a
Commit
b1fe783a
authored
Feb 24, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Fix relay entry points for Thumb mode.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4ef8e946
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
spec32.c
tools/winebuild/spec32.c
+5
-6
No files found.
tools/winebuild/spec32.c
View file @
b1fe783a
...
...
@@ -236,7 +236,7 @@ static void output_relay_debug( DLLSPEC *spec )
ORDDEF
*
odp
=
spec
->
ordinals
[
i
];
if
(
needs_relay
(
odp
))
output
(
"
\t
.long
.L
__wine_spec_relay_entry_point_%d-__wine_spec_relay_entry_points
\n
"
,
i
);
output
(
"
\t
.long __wine_spec_relay_entry_point_%d-__wine_spec_relay_entry_points
\n
"
,
i
);
else
output
(
"
\t
.long 0
\n
"
);
}
...
...
@@ -249,7 +249,6 @@ static void output_relay_debug( DLLSPEC *spec )
/* then the relay thunks */
output
(
"
\t
.text
\n
"
);
if
(
thumb_mode
)
output
(
"
\t
.thumb_func
\n
"
);
output
(
"__wine_spec_relay_entry_points:
\n
"
);
output
(
"
\t
nop
\n
"
);
/* to avoid 0 offset */
...
...
@@ -264,7 +263,7 @@ static void output_relay_debug( DLLSPEC *spec )
case
CPU_x86
:
output
(
"
\t
.align %d
\n
"
,
get_alignment
(
4
)
);
output
(
"
\t
.long 0x90909090,0x90909090
\n
"
);
output
(
"
.L
__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output
(
"__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output_cfi
(
".cfi_startproc"
);
output
(
"
\t
.byte 0x8b,0xff,0x55,0x8b,0xec,0x5d
\n
"
);
/* hotpatch prolog */
if
(
odp
->
flags
&
(
FLAG_THISCALL
|
FLAG_FASTCALL
))
/* add the register arguments */
...
...
@@ -308,7 +307,7 @@ static void output_relay_debug( DLLSPEC *spec )
val
=
(
odp
->
u
.
func
.
args_str_offset
<<
16
)
|
(
i
-
spec
->
base
);
output
(
"
\t
.align %d
\n
"
,
get_alignment
(
4
)
);
if
(
thumb_mode
)
output
(
"
\t
.thumb_func
\n
"
);
output
(
"
.L
__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output
(
"__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output_cfi
(
".cfi_startproc"
);
output
(
"
\t
push {r0-r3}
\n
"
);
output
(
"
\t
mov r2, SP
\n
"
);
...
...
@@ -333,7 +332,7 @@ static void output_relay_debug( DLLSPEC *spec )
case
CPU_ARM64
:
output
(
"
\t
.align %d
\n
"
,
get_alignment
(
4
)
);
output
(
"
.L
__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output
(
"__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output_cfi
(
".cfi_startproc"
);
switch
(
odp
->
u
.
func
.
nb_args
)
{
...
...
@@ -372,7 +371,7 @@ static void output_relay_debug( DLLSPEC *spec )
case
CPU_x86_64
:
output
(
"
\t
.align %d
\n
"
,
get_alignment
(
4
)
);
output
(
"
\t
.long 0x90909090,0x90909090
\n
"
);
output
(
"
.L
__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output
(
"__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output_cfi
(
".cfi_startproc"
);
switch
(
odp
->
u
.
func
.
nb_args
)
{
...
...
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