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
8c6649e4
Commit
8c6649e4
authored
Sep 16, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented import thunks for x86-64.
parent
6b5f290d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
import.c
tools/winebuild/import.c
+16
-3
No files found.
tools/winebuild/import.c
View file @
8c6649e4
...
...
@@ -619,7 +619,6 @@ static void output_import_thunk( FILE *outfile, const char *name, const char *ta
switch
(
target_cpu
)
{
case
CPU_x86_64
:
/* FIXME */
case
CPU_x86
:
if
(
!
UsePIC
)
{
...
...
@@ -671,6 +670,9 @@ static void output_import_thunk( FILE *outfile, const char *name, const char *ta
}
}
break
;
case
CPU_x86_64
:
fprintf
(
outfile
,
"
\t
jmpq *%s+%d(%%rip)
\n
"
,
table
,
pos
);
break
;
case
CPU_SPARC
:
if
(
!
UsePIC
)
{
...
...
@@ -956,7 +958,6 @@ static void output_delayed_import_thunks( FILE *outfile, const DLLSPEC *spec )
fprintf
(
outfile
,
"%s:
\n
"
,
asm_name
(
"__wine_delay_load_asm"
)
);
switch
(
target_cpu
)
{
case
CPU_x86_64
:
/* FIXME */
case
CPU_x86
:
fprintf
(
outfile
,
"
\t
pushl %%ecx
\n
"
);
fprintf
(
outfile
,
"
\t
pushl %%edx
\n
"
);
...
...
@@ -966,6 +967,15 @@ static void output_delayed_import_thunks( FILE *outfile, const DLLSPEC *spec )
fprintf
(
outfile
,
"
\t
popl %%ecx
\n
"
);
fprintf
(
outfile
,
"
\t
jmp *%%eax
\n
"
);
break
;
case
CPU_x86_64
:
fprintf
(
outfile
,
"
\t
pushq %%rdi
\n
"
);
fprintf
(
outfile
,
"
\t
subq $8,%%rsp
\n
"
);
fprintf
(
outfile
,
"
\t
movq %%r11,%%rdi
\n
"
);
fprintf
(
outfile
,
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_delay_load"
)
);
fprintf
(
outfile
,
"
\t
addq $8,%%rsp
\n
"
);
fprintf
(
outfile
,
"
\t
popq %%rdi
\n
"
);
fprintf
(
outfile
,
"
\t
jmp *%%rax
\n
"
);
break
;
case
CPU_SPARC
:
fprintf
(
outfile
,
"
\t
save %%sp, -96, %%sp
\n
"
);
fprintf
(
outfile
,
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_delay_load"
)
);
...
...
@@ -1041,11 +1051,14 @@ static void output_delayed_import_thunks( FILE *outfile, const DLLSPEC *spec )
fprintf
(
outfile
,
".L__wine_delay_imp_%d_%s:
\n
"
,
i
,
name
);
switch
(
target_cpu
)
{
case
CPU_x86_64
:
/* FIXME */
case
CPU_x86
:
fprintf
(
outfile
,
"
\t
movl $%d, %%eax
\n
"
,
(
idx
<<
16
)
|
j
);
fprintf
(
outfile
,
"
\t
jmp %s
\n
"
,
asm_name
(
"__wine_delay_load_asm"
)
);
break
;
case
CPU_x86_64
:
fprintf
(
outfile
,
"
\t
movq $%d,%%r11
\n
"
,
(
idx
<<
16
)
|
j
);
fprintf
(
outfile
,
"
\t
jmp %s
\n
"
,
asm_name
(
"__wine_delay_load_asm"
)
);
break
;
case
CPU_SPARC
:
fprintf
(
outfile
,
"
\t
set %d, %%g1
\n
"
,
(
idx
<<
16
)
|
j
);
fprintf
(
outfile
,
"
\t
b,a %s
\n
"
,
asm_name
(
"__wine_delay_load_asm"
)
);
...
...
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