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
c9ea5f1a
Commit
c9ea5f1a
authored
Nov 26, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The __wine_call_from_16_ calls in the import table should use a valid
segment for dereferencing their pointer (using CS).
parent
5d1a6385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
import.c
tools/winebuild/import.c
+7
-6
No files found.
tools/winebuild/import.c
View file @
c9ea5f1a
...
@@ -282,8 +282,7 @@ int output_imports( FILE *outfile )
...
@@ -282,8 +282,7 @@ int output_imports( FILE *outfile )
/* main import header */
/* main import header */
fprintf
(
outfile
,
"
\n\n
/* imports */
\n\n
"
);
fprintf
(
outfile
,
"
\n
static struct {
\n
"
);
fprintf
(
outfile
,
"static struct {
\n
"
);
fprintf
(
outfile
,
" struct {
\n
"
);
fprintf
(
outfile
,
" struct {
\n
"
);
fprintf
(
outfile
,
" void *OriginalFirstThunk;
\n
"
);
fprintf
(
outfile
,
" void *OriginalFirstThunk;
\n
"
);
fprintf
(
outfile
,
" unsigned int TimeDateStamp;
\n
"
);
fprintf
(
outfile
,
" unsigned int TimeDateStamp;
\n
"
);
...
@@ -320,7 +319,7 @@ int output_imports( FILE *outfile )
...
@@ -320,7 +319,7 @@ int output_imports( FILE *outfile )
fprintf
(
outfile
,
"#ifndef __GNUC__
\n
static void __asm__dummy_import(void) {
\n
#endif
\n\n
"
);
fprintf
(
outfile
,
"#ifndef __GNUC__
\n
static void __asm__dummy_import(void) {
\n
#endif
\n\n
"
);
pos
=
20
*
(
nb_imports
+
1
);
/* offset of imports.data from start of imports */
pos
=
20
*
(
nb_imports
+
1
);
/* offset of imports.data from start of imports */
fprintf
(
outfile
,
"asm(
\"
.align
4
\\
n
\"\n
"
);
fprintf
(
outfile
,
"asm(
\"
.align
8
\\
n
\"\n
"
);
for
(
i
=
0
;
i
<
nb_imports
;
i
++
,
pos
+=
4
)
for
(
i
=
0
;
i
<
nb_imports
;
i
++
,
pos
+=
4
)
{
{
for
(
j
=
0
;
j
<
dll_imports
[
i
]
->
nb_imports
;
j
++
,
pos
+=
4
)
for
(
j
=
0
;
j
<
dll_imports
[
i
]
->
nb_imports
;
j
++
,
pos
+=
4
)
...
@@ -329,9 +328,11 @@ int output_imports( FILE *outfile )
...
@@ -329,9 +328,11 @@ int output_imports( FILE *outfile )
dll_imports
[
i
]
->
imports
[
j
]
);
dll_imports
[
i
]
->
imports
[
j
]
);
fprintf
(
outfile
,
"
\"\\
t.globl "
PREFIX
"%s
\\
n
\"\n
"
,
fprintf
(
outfile
,
"
\"\\
t.globl "
PREFIX
"%s
\\
n
\"\n
"
,
dll_imports
[
i
]
->
imports
[
j
]
);
dll_imports
[
i
]
->
imports
[
j
]
);
fprintf
(
outfile
,
"
\"
"
PREFIX
"%s:
\\
tjmp *(imports+%d)
\\
n
\"\n
"
,
fprintf
(
outfile
,
"
\"
"
PREFIX
"%s:
\\
t"
,
dll_imports
[
i
]
->
imports
[
j
]
);
dll_imports
[
i
]
->
imports
[
j
],
pos
);
if
(
strstr
(
dll_imports
[
i
]
->
imports
[
j
],
"__wine_call_from_16"
))
fprintf
(
outfile
,
"
\"\\
tmovl %%esi,%%esi
\\
n
\"\n
"
);
fprintf
(
outfile
,
".byte 0x2e
\\
n
\\
tjmp *(imports+%d)
\\
n
\\
tnop
\\
n
\"\n
"
,
pos
);
else
fprintf
(
outfile
,
"jmp *(imports+%d)
\\
n
\\
tmovl %%esi,%%esi
\\
n
\"\n
"
,
pos
);
}
}
}
}
fprintf
(
outfile
,
");
\n
#ifndef __GNUC__
\n
}
\n
#endif
\n\n
"
);
fprintf
(
outfile
,
");
\n
#ifndef __GNUC__
\n
}
\n
#endif
\n\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