Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c5cbf715
Commit
c5cbf715
authored
Jul 15, 2004
by
Pierre d'Herbemont
Committed by
Alexandre Julliard
Jul 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Be more accurate on Darwin stack size.
- Delay import fix on PowerPC hosts.
parent
48243e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
import.c
tools/winebuild/import.c
+22
-6
No files found.
tools/winebuild/import.c
View file @
c5cbf715
...
...
@@ -899,8 +899,8 @@ static int output_delayed_imports( FILE *outfile, const DLLSPEC *spec )
fprintf
(
outfile
,
"
\"\\
tjmp %%o0
\\
n
\\
trestore
\\
n
\"\n
"
);
#elif defined(__powerpc__)
# if defined(__APPLE__)
/* On darwin an extra
24 bytes must be allowed for the linkage
area */
# define extra_stack_storage
24
/* On darwin an extra
56 bytes must be allowed for the linkage area+param
area */
# define extra_stack_storage
56
# else
# define extra_stack_storage 0
# endif
...
...
@@ -973,11 +973,27 @@ static int output_delayed_imports( FILE *outfile, const DLLSPEC *spec )
fprintf
(
outfile
,
"
\"\\
tset %d, %%g1
\\
n
\"\n
"
,
(
idx
<<
16
)
|
j
);
fprintf
(
outfile
,
"
\"\\
tb,a __wine_delay_load_asm
\\
n
\"\n
"
);
#elif defined(__powerpc__)
/* g0 is a function scratch register or so I understand. */
/* First load the upper half-word, and then the lower part */
fprintf
(
outfile
,
"
\"\\
tlis %s, %d
\\
n
\"\n
"
,
ppc_reg
[
0
],
idx
);
fprintf
(
outfile
,
"
\"\\
tli %s, %d
\\
n
\"\n
"
,
ppc_reg
[
0
],
j
);
#ifdef __APPLE__
/* On Darwin we can use r0 and r2 */
/* Upper part in r2 */
fprintf
(
outfile
,
"
\"\\
tlis %s, %d
\\
n
\"\n
"
,
ppc_reg
[
2
],
idx
);
/* Lower part + r2 -> r0, Note we can't use r0 directly */
fprintf
(
outfile
,
"
\"\\
taddi %s, %s, %d
\\
n
\"\n
"
,
ppc_reg
[
0
],
ppc_reg
[
2
],
j
);
fprintf
(
outfile
,
"
\"\\
tb "
__ASM_NAME
(
"__wine_delay_load_asm"
)
"
\\
n
\"\n
"
);
#else
/* __APPLE__ */
/* On linux we can't use r2 since r2 is not a scratch register (hold the TOC) */
/* Save r13 on the stack */
fprintf
(
outfile
,
"
\"\\
taddi %s, %s, -0x4
\\
n
\"\n
"
,
ppc_reg
[
1
],
ppc_reg
[
1
]);
fprintf
(
outfile
,
"
\"\\
tstw %s, 0(%s)
\\
n
\"\n
"
,
ppc_reg
[
13
],
ppc_reg
[
1
]);
/* Upper part in r13 */
fprintf
(
outfile
,
"
\"\\
tlis %s, %d
\\
n
\"\n
"
,
ppc_reg
[
13
],
idx
);
/* Lower part + r13 -> r0, Note we can't use r0 directly */
fprintf
(
outfile
,
"
\"\\
taddi %s, %s, %d
\\
n
\"\n
"
,
ppc_reg
[
0
],
ppc_reg
[
13
],
j
);
/* Restore r13 */
fprintf
(
outfile
,
"
\"\\
tstw %s, 0(%s)
\\
n
\"\n
"
,
ppc_reg
[
13
],
ppc_reg
[
1
]);
fprintf
(
outfile
,
"
\"\\
taddic %s, %s, 0x4
\\
n
\"\n
"
,
ppc_reg
[
1
],
ppc_reg
[
1
]);
fprintf
(
outfile
,
"
\"\\
tb "
__ASM_NAME
(
"__wine_delay_load_asm"
)
"
\\
n
\"\n
"
);
#endif
/* __APPLE__ */
#else
#error You need to defined delayed import thunks for your architecture!
#endif
...
...
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