Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
37dba06e
Commit
37dba06e
authored
Jul 06, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Output cfi data for relay thunks on i386.
parent
55946e3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
spec32.c
tools/winebuild/spec32.c
+8
-4
No files found.
tools/winebuild/spec32.c
View file @
37dba06e
...
...
@@ -161,6 +161,7 @@ static void output_relay_debug( DLLSPEC *spec )
output
(
"
\t
.align %d
\n
"
,
get_alignment
(
4
)
);
output
(
".L__wine_spec_relay_entry_point_%d:
\n
"
,
i
);
output_cfi
(
".cfi_startproc"
);
args
=
get_args_size
(
odp
)
/
get_ptr_size
();
flags
=
0
;
...
...
@@ -179,9 +180,11 @@ static void output_relay_debug( DLLSPEC *spec )
output
(
"
\t
pushl %%eax
\n
"
);
else
output
(
"
\t
pushl %%esp
\n
"
);
output_cfi
(
".cfi_adjust_cfa_offset 4"
);
if
(
odp
->
flags
&
FLAG_RET64
)
flags
|=
1
;
output
(
"
\t
pushl $%u
\n
"
,
(
flags
<<
24
)
|
(
args
<<
16
)
|
(
i
-
spec
->
base
)
);
output_cfi
(
".cfi_adjust_cfa_offset 4"
);
if
(
UsePIC
)
{
...
...
@@ -190,6 +193,7 @@ static void output_relay_debug( DLLSPEC *spec )
}
else
output
(
"
\t
movl $.L__wine_spec_relay_descr,%%eax
\n
"
);
output
(
"
\t
pushl %%eax
\n
"
);
output_cfi
(
".cfi_adjust_cfa_offset 4"
);
if
(
odp
->
flags
&
FLAG_REGISTER
)
{
...
...
@@ -198,6 +202,7 @@ static void output_relay_debug( DLLSPEC *spec )
else
{
output
(
"
\t
call *4(%%eax)
\n
"
);
output_cfi
(
".cfi_adjust_cfa_offset -12"
);
if
(
odp
->
type
==
TYPE_STDCALL
||
odp
->
type
==
TYPE_THISCALL
)
output
(
"
\t
ret $%u
\n
"
,
args
*
get_ptr_size
()
);
else
...
...
@@ -206,9 +211,8 @@ static void output_relay_debug( DLLSPEC *spec )
break
;
case
CPU_x86_64
:
output
(
"
\t
.cfi_startproc
\n
"
);
output
(
"
\t
subq $40,%%rsp
\n
"
);
output
(
"
\t
.cfi_adjust_cfa_offset 40
\n
"
);
output
_cfi
(
".cfi_adjust_cfa_offset 40
"
);
switch
(
args
)
{
default:
output
(
"
\t
movq %%%s,72(%%rsp)
\n
"
,
is_float_arg
(
odp
,
3
)
?
"xmm3"
:
"r9"
);
...
...
@@ -226,14 +230,14 @@ static void output_relay_debug( DLLSPEC *spec )
output
(
"
\t
leaq .L__wine_spec_relay_descr(%%rip),%%rcx
\n
"
);
output
(
"
\t
callq *8(%%rcx)
\n
"
);
output
(
"
\t
addq $40,%%rsp
\n
"
);
output
(
"
\t
.cfi_adjust_cfa_offset -40
\n
"
);
output
_cfi
(
".cfi_adjust_cfa_offset -40
"
);
output
(
"
\t
ret
\n
"
);
output
(
"
\t
.cfi_endproc
\n
"
);
break
;
default:
assert
(
0
);
}
output_cfi
(
".cfi_endproc"
);
}
}
...
...
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