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
e6fe7341
Commit
e6fe7341
authored
Dec 06, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Improved checks for missing forward entry point targets.
parent
32fc1acb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
22 deletions
+19
-22
import.c
tools/winebuild/import.c
+19
-22
No files found.
tools/winebuild/import.c
View file @
e6fe7341
...
...
@@ -424,12 +424,16 @@ static int check_unused( const struct import* imp, const DLLSPEC *spec )
}
/* check if a given forward does exist in one of the imported dlls */
static
void
check_undefined_forward
(
DLLSPEC
*
spec
,
ORDDEF
*
odp
)
static
void
check_undefined_forward
s
(
DLLSPEC
*
spec
)
{
char
*
link_name
,
*
api_name
,
*
dll_name
,
*
p
;
int
i
,
found
=
0
;
int
i
,
j
;
for
(
i
=
0
;
i
<
spec
->
nb_entry_points
;
i
++
)
{
ORDDEF
*
odp
=
&
spec
->
entry_points
[
i
];
assert
(
odp
->
flags
&
FLAG_FORWARD
)
;
if
(
!
(
odp
->
flags
&
FLAG_FORWARD
))
continue
;
link_name
=
xstrdup
(
odp
->
link_name
);
p
=
strrchr
(
link_name
,
'.'
);
...
...
@@ -437,26 +441,22 @@ static void check_undefined_forward( DLLSPEC *spec, ORDDEF *odp )
api_name
=
p
+
1
;
dll_name
=
get_dll_name
(
link_name
,
NULL
);
for
(
i
=
0
;
i
<
nb_imports
;
i
++
)
for
(
j
=
0
;
j
<
nb_imports
;
j
++
)
{
struct
import
*
imp
=
dll_imports
[
i
];
struct
import
*
imp
=
dll_imports
[
j
];
if
(
!
strcasecmp
(
imp
->
spec
->
file_name
,
dll_name
))
{
if
(
find_export
(
api_name
,
imp
->
exports
,
imp
->
nb_exports
))
{
found
=
1
;
if
(
strcasecmp
(
imp
->
spec
->
file_name
,
dll_name
))
continue
;
if
(
!
find_export
(
api_name
,
imp
->
exports
,
imp
->
nb_exports
))
warning
(
"%s:%d: forward '%s' not found in %s
\n
"
,
spec
->
src_name
,
odp
->
lineno
,
odp
->
link_name
,
imp
->
spec
->
file_name
);
break
;
}
}
}
free
(
link_name
);
free
(
dll_name
);
if
(
!
found
)
if
(
j
==
nb_imports
)
warning
(
"%s:%d: forward '%s' not found in the imported dll list
\n
"
,
spec
->
src_name
,
odp
->
lineno
,
odp
->
link_name
);
free
(
link_name
);
free
(
dll_name
);
}
}
/* flag the dll exports that link to an undefined symbol */
...
...
@@ -468,11 +468,7 @@ static void check_undefined_exports( DLLSPEC *spec )
{
ORDDEF
*
odp
=
&
spec
->
entry_points
[
i
];
if
(
odp
->
type
==
TYPE_STUB
)
continue
;
if
(
odp
->
flags
&
FLAG_FORWARD
)
{
check_undefined_forward
(
spec
,
odp
);
continue
;
}
if
(
odp
->
flags
&
FLAG_FORWARD
)
continue
;
if
(
find_name
(
odp
->
link_name
,
&
undef_symbols
))
{
switch
(
odp
->
type
)
...
...
@@ -597,6 +593,7 @@ int resolve_imports( DLLSPEC *spec )
ORDDEF
*
odp
;
sort_names
(
&
ignore_symbols
);
check_undefined_forwards
(
spec
);
for
(
i
=
0
;
i
<
nb_imports
;
i
++
)
{
...
...
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