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
ce635744
Commit
ce635744
authored
Dec 16, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Generate stub entry points for x86_64.
parent
24d3b1f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
29 deletions
+48
-29
import.c
tools/winebuild/import.c
+47
-28
parser.c
tools/winebuild/parser.c
+1
-1
No files found.
tools/winebuild/import.c
View file @
ce635744
...
@@ -1192,45 +1192,64 @@ void output_stubs( DLLSPEC *spec )
...
@@ -1192,45 +1192,64 @@ void output_stubs( DLLSPEC *spec )
output
(
"
\t
%s
\n
"
,
func_declaration
(
name
)
);
output
(
"
\t
%s
\n
"
,
func_declaration
(
name
)
);
output
(
"%s:
\n
"
,
asm_name
(
name
)
);
output
(
"%s:
\n
"
,
asm_name
(
name
)
);
/* flesh out the stub a bit to make safedisc happy */
switch
(
target_cpu
)
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
subl $4,%%esp
\n
"
);
if
(
UsePIC
)
{
{
output
(
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_get_pc_thunk_eax"
)
);
case
CPU_x86
:
output
(
"1:"
);
/* flesh out the stub a bit to make safedisc happy */
if
(
exp_name
)
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
nop
\n
"
);
output
(
"
\t
subl $4,%%esp
\n
"
);
if
(
UsePIC
)
{
{
output
(
"
\t
leal .L%s_string-1b(%%eax),%%ecx
\n
"
,
name
);
output
(
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_get_pc_thunk_eax"
)
);
output
(
"1:"
);
if
(
exp_name
)
{
output
(
"
\t
leal .L%s_string-1b(%%eax),%%ecx
\n
"
,
name
);
output
(
"
\t
pushl %%ecx
\n
"
);
count
++
;
}
else
output
(
"
\t
pushl $%d
\n
"
,
odp
->
ordinal
);
output
(
"
\t
leal .L__wine_spec_file_name-1b(%%eax),%%ecx
\n
"
);
output
(
"
\t
pushl %%ecx
\n
"
);
output
(
"
\t
pushl %%ecx
\n
"
);
count
++
;
}
}
else
else
output
(
"
\t
pushl $%d
\n
"
,
odp
->
ordinal
);
{
output
(
"
\t
leal .L__wine_spec_file_name-1b(%%eax),%%ecx
\n
"
);
if
(
exp_name
)
output
(
"
\t
pushl %%ecx
\n
"
);
{
}
output
(
"
\t
pushl $.L%s_string
\n
"
,
name
);
else
count
++
;
{
}
else
output
(
"
\t
pushl $%d
\n
"
,
odp
->
ordinal
);
output
(
"
\t
pushl $.L__wine_spec_file_name
\n
"
);
}
output
(
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_unimplemented_stub"
)
);
break
;
case
CPU_x86_64
:
output
(
"
\t
leaq .L__wine_spec_file_name(%%rip),%%rdi
\n
"
);
if
(
exp_name
)
if
(
exp_name
)
{
{
output
(
"
\t
pushl $.L%s_string
\n
"
,
name
);
output
(
"
leaq .L%s_string(%%rip),%%rsi
\n
"
,
name
);
count
++
;
count
++
;
}
}
else
else
output
(
"
\t
pushl $%d
\n
"
,
odp
->
ordinal
);
output
(
"
\t
movq $%d,%%rsi
\n
"
,
odp
->
ordinal
);
output
(
"
\t
pushl $.L__wine_spec_file_name
\n
"
);
output
(
"
\t
subq $8,%%rsp
\n
"
);
output
(
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_unimplemented_stub"
)
);
break
;
default:
assert
(
0
);
}
}
output
(
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_unimplemented_stub"
)
);
output_function_size
(
name
);
output_function_size
(
name
);
}
}
...
...
tools/winebuild/parser.c
View file @
ce635744
...
@@ -377,7 +377,7 @@ static int parse_spec_stub( ORDDEF *odp, DLLSPEC *spec )
...
@@ -377,7 +377,7 @@ static int parse_spec_stub( ORDDEF *odp, DLLSPEC *spec )
{
{
odp
->
u
.
func
.
arg_types
[
0
]
=
'\0'
;
odp
->
u
.
func
.
arg_types
[
0
]
=
'\0'
;
odp
->
link_name
=
xstrdup
(
""
);
odp
->
link_name
=
xstrdup
(
""
);
odp
->
flags
|=
FLAG_CPU
(
CPU_x86
);
/* don't bother generating stubs for Winelib */
odp
->
flags
|=
FLAG_CPU
(
CPU_x86
)
|
FLAG_CPU
(
CPU_x86_64
)
;
/* don't bother generating stubs for Winelib */
return
1
;
return
1
;
}
}
...
...
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