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
a3229faf
Commit
a3229faf
authored
Mar 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Output the module filename along with the stub data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0cdab409
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
30 deletions
+16
-30
import.c
tools/winebuild/import.c
+16
-29
spec32.c
tools/winebuild/spec32.c
+0
-1
No files found.
tools/winebuild/import.c
View file @
a3229faf
...
...
@@ -1187,14 +1187,14 @@ static void output_external_link_imports( DLLSPEC *spec )
void
output_stubs
(
DLLSPEC
*
spec
)
{
const
char
*
name
,
*
exp_name
;
int
i
,
count
;
int
i
;
if
(
!
has_stubs
(
spec
))
return
;
output
(
"
\n
/* stub functions */
\n\n
"
);
output
(
"
\t
.text
\n
"
);
for
(
i
=
count
=
0
;
i
<
spec
->
nb_entry_points
;
i
++
)
for
(
i
=
0
;
i
<
spec
->
nb_entry_points
;
i
++
)
{
ORDDEF
*
odp
=
&
spec
->
entry_points
[
i
];
if
(
odp
->
type
!=
TYPE_STUB
)
continue
;
...
...
@@ -1231,7 +1231,6 @@ void output_stubs( DLLSPEC *spec )
{
output
(
"
\t
leal .L%s_string-1b(%%eax),%%ecx
\n
"
,
name
);
output
(
"
\t
movl %%ecx,4(%%esp)
\n
"
);
count
++
;
}
else
output
(
"
\t
movl $%d,4(%%esp)
\n
"
,
odp
->
ordinal
);
...
...
@@ -1241,10 +1240,7 @@ void output_stubs( DLLSPEC *spec )
else
{
if
(
exp_name
)
{
output
(
"
\t
movl $.L%s_string,4(%%esp)
\n
"
,
name
);
count
++
;
}
else
output
(
"
\t
movl $%d,4(%%esp)
\n
"
,
odp
->
ordinal
);
output
(
"
\t
movl $.L__wine_spec_file_name,(%%esp)
\n
"
);
...
...
@@ -1256,10 +1252,7 @@ void output_stubs( DLLSPEC *spec )
output_cfi
(
".cfi_adjust_cfa_offset 8"
);
output
(
"
\t
leaq .L__wine_spec_file_name(%%rip),%%rdi
\n
"
);
if
(
exp_name
)
{
output
(
"leaq .L%s_string(%%rip),%%rsi
\n
"
,
name
);
count
++
;
}
else
output
(
"
\t
movq $%d,%%rsi
\n
"
,
odp
->
ordinal
);
output
(
"
\t
call %s
\n
"
,
asm_name
(
"__wine_spec_unimplemented_stub"
)
);
...
...
@@ -1269,24 +1262,19 @@ void output_stubs( DLLSPEC *spec )
output
(
"
\t
add r0,PC
\n
"
);
output
(
"
\t
ldr r1,2f+4
\n
"
);
output
(
"1:"
);
if
(
exp_name
)
{
output
(
"
\t
add r1,PC
\n
"
);
count
++
;
}
if
(
exp_name
)
output
(
"
\t
add r1,PC
\n
"
);
output
(
"
\t
bl %s
\n
"
,
asm_name
(
"__wine_spec_unimplemented_stub"
)
);
output
(
"2:
\t
.long .L__wine_spec_file_name-1b
\n
"
);
if
(
exp_name
)
output
(
"
\t
.long .L%s_string-2b
\n
"
,
name
);
else
output
(
"
\t
.long %u
\n
"
,
odp
->
ordinal
);
break
;
case
CPU_ARM64
:
output
(
"
\t
adrp x0,
%s
\n
"
,
asm_name
(
"__wine_spec_file_name"
)
);
output
(
"
\t
add x0, x0, #:lo12:
%s
\n
"
,
asm_name
(
"__wine_spec_file_name"
)
);
output
(
"
\t
adrp x0,
.L__wine_spec_file_name
\n
"
);
output
(
"
\t
add x0, x0, #:lo12:
.L__wine_spec_file_name
\n
"
);
if
(
exp_name
)
{
output
(
"
\t
adrp x1, .L%s_string
\n
"
,
name
);
output
(
"
\t
add x1, x1, #:lo12:.L%s_string
\n
"
,
name
);
count
++
;
}
else
output
(
"
\t
mov x1, %u
\n
"
,
odp
->
ordinal
);
...
...
@@ -1301,20 +1289,19 @@ void output_stubs( DLLSPEC *spec )
output_function_size
(
name
);
}
if
(
count
)
output
(
"
\t
%s
\n
"
,
get_asm_string_section
()
);
output
(
".L__wine_spec_file_name:
\n
"
);
output
(
"
\t
%s
\"
%s
\"\n
"
,
get_asm_string_keyword
(),
spec
->
file_name
);
for
(
i
=
0
;
i
<
spec
->
nb_entry_points
;
i
++
)
{
output
(
"
\t
%s
\n
"
,
get_asm_string_section
()
);
for
(
i
=
0
;
i
<
spec
->
nb_entry_points
;
i
++
)
ORDDEF
*
odp
=
&
spec
->
entry_points
[
i
];
if
(
odp
->
type
!=
TYPE_STUB
)
continue
;
exp_name
=
odp
->
name
?
odp
->
name
:
odp
->
export_name
;
if
(
exp_name
)
{
ORDDEF
*
odp
=
&
spec
->
entry_points
[
i
];
if
(
odp
->
type
!=
TYPE_STUB
)
continue
;
exp_name
=
odp
->
name
?
odp
->
name
:
odp
->
export_name
;
if
(
exp_name
)
{
name
=
get_stub_name
(
odp
,
spec
);
output
(
".L%s_string:
\n
"
,
name
);
output
(
"
\t
%s
\"
%s
\"\n
"
,
get_asm_string_keyword
(),
exp_name
);
}
name
=
get_stub_name
(
odp
,
spec
);
output
(
".L%s_string:
\n
"
,
name
);
output
(
"
\t
%s
\"
%s
\"\n
"
,
get_asm_string_keyword
(),
exp_name
);
}
}
}
...
...
tools/winebuild/spec32.c
View file @
a3229faf
...
...
@@ -685,7 +685,6 @@ void output_module( DLLSPEC *spec )
output
(
"
\n\t
%s
\n
"
,
get_asm_string_section
()
);
output
(
"%s
\n
"
,
asm_globl
(
"__wine_spec_file_name"
)
);
output
(
".L__wine_spec_file_name:
\n
"
);
output
(
"
\t
%s
\"
%s
\"\n
"
,
get_asm_string_keyword
(),
spec
->
file_name
);
if
(
target_platform
==
PLATFORM_APPLE
)
output
(
"
\t
.lcomm %s,4
\n
"
,
asm_name
(
"_end"
)
);
...
...
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