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
75a830e8
Commit
75a830e8
authored
Sep 18, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Put the thunk hint/name in FirstThunk too instead of zero.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0ab54e4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
import.c
tools/winebuild/import.c
+17
-19
No files found.
tools/winebuild/import.c
View file @
75a830e8
...
...
@@ -708,7 +708,7 @@ int has_imports(void)
/* output the import table of a Win32 module */
static
void
output_immediate_imports
(
void
)
{
int
j
;
int
i
,
j
;
struct
import
*
import
;
if
(
list_empty
(
&
dll_imports
))
return
;
/* no immediate imports */
...
...
@@ -742,30 +742,28 @@ static void output_immediate_imports(void)
output
(
"
\t
.long 0
\n
"
);
/* FirstThunk */
output
(
"
\n\t
.align %d
\n
"
,
get_alignment
(
get_ptr_size
())
);
output
(
".L__wine_spec_import_data_names:
\n
"
);
LIST_FOR_EACH_ENTRY
(
import
,
&
dll_imports
,
struct
import
,
entry
)
/* output the names twice, once for OriginalFirstThunk and once for FirstThunk */
for
(
i
=
0
;
i
<
2
;
i
++
)
{
for
(
j
=
0
;
j
<
import
->
nb_imports
;
j
++
)
output
(
".L__wine_spec_import_data_%s:
\n
"
,
i
?
"ptrs"
:
"names"
);
LIST_FOR_EACH_ENTRY
(
import
,
&
dll_imports
,
struct
import
,
entry
)
{
struct
import_func
*
func
=
&
import
->
imports
[
j
];
if
(
func
->
name
)
output
(
"
\t
%s .L__wine_spec_import_data_%s_%s-.L__wine_spec_rva_base
\n
"
,
get_asm_ptr_keyword
(),
import
->
c_name
,
func
->
name
);
else
for
(
j
=
0
;
j
<
import
->
nb_imports
;
j
++
)
{
if
(
get_ptr_size
()
==
8
)
output
(
"
\t
.quad 0x800000000000%04x
\n
"
,
func
->
ordinal
);
struct
import_func
*
func
=
&
import
->
imports
[
j
];
if
(
func
->
name
)
output
(
"
\t
%s .L__wine_spec_import_data_%s_%s-.L__wine_spec_rva_base
\n
"
,
get_asm_ptr_keyword
(),
import
->
c_name
,
func
->
name
);
else
output
(
"
\t
.long 0x8000%04x
\n
"
,
func
->
ordinal
);
{
if
(
get_ptr_size
()
==
8
)
output
(
"
\t
.quad 0x800000000000%04x
\n
"
,
func
->
ordinal
);
else
output
(
"
\t
.long 0x8000%04x
\n
"
,
func
->
ordinal
);
}
}
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
}
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
}
output
(
".L__wine_spec_import_data_ptrs:
\n
"
);
LIST_FOR_EACH_ENTRY
(
import
,
&
dll_imports
,
struct
import
,
entry
)
{
for
(
j
=
0
;
j
<
import
->
nb_imports
;
j
++
)
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
output
(
"
\t
%s 0
\n
"
,
get_asm_ptr_keyword
()
);
}
output
(
".L__wine_spec_imports_end:
\n
"
);
...
...
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