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
913354e7
Commit
913354e7
authored
Dec 27, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Fix delay load code to preserve stack alignment and save the correct registers.
parent
8a87aaa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
import.c
tools/winebuild/import.c
+8
-8
No files found.
tools/winebuild/import.c
View file @
913354e7
...
...
@@ -971,22 +971,22 @@ static void output_delayed_import_thunks( const DLLSPEC *spec )
output
(
"
\t
jmp *%%eax
\n
"
);
break
;
case
CPU_x86_64
:
output
(
"
\t
pushq %%rdi
\n
"
);
output
(
"
\t
pushq %%rsi
\n
"
);
output
(
"
\t
pushq %%rdx
\n
"
);
output
(
"
\t
pushq %%rcx
\n
"
);
output
(
"
\t
pushq %%r8
\n
"
);
output
(
"
\t
pushq %%r9
\n
"
);
output
(
"
\t
subq $32,%%rsp
\n
"
);
output
(
"
\t
movq %%r11,%%rcx
\n
"
);
output
(
"
\t
pushq %%r10
\n
"
);
output
(
"
\t
pushq %%r11
\n
"
);
output
(
"
\t
subq $40,%%rsp
\n
"
);
output
(
"
\t
movq %%rax,%%rcx
\n
"
);
output
(
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_delay_load"
)
);
output
(
"
\t
addq $32,%%rsp
\n
"
);
output
(
"
\t
addq $40,%%rsp
\n
"
);
output
(
"
\t
popq %%r11
\n
"
);
output
(
"
\t
popq %%r10
\n
"
);
output
(
"
\t
popq %%r9
\n
"
);
output
(
"
\t
popq %%r8
\n
"
);
output
(
"
\t
popq %%rcx
\n
"
);
output
(
"
\t
popq %%rdx
\n
"
);
output
(
"
\t
popq %%rsi
\n
"
);
output
(
"
\t
popq %%rdi
\n
"
);
output
(
"
\t
jmp *%%rax
\n
"
);
break
;
case
CPU_SPARC
:
...
...
@@ -1069,7 +1069,7 @@ static void output_delayed_import_thunks( const DLLSPEC *spec )
output
(
"
\t
jmp %s
\n
"
,
asm_name
(
"__wine_delay_load_asm"
)
);
break
;
case
CPU_x86_64
:
output
(
"
\t
movq $%d,%%r
11
\n
"
,
(
idx
<<
16
)
|
j
);
output
(
"
\t
movq $%d,%%r
ax
\n
"
,
(
idx
<<
16
)
|
j
);
output
(
"
\t
jmp %s
\n
"
,
asm_name
(
"__wine_delay_load_asm"
)
);
break
;
case
CPU_SPARC
:
...
...
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