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
51d84822
Commit
51d84822
authored
Jul 31, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preloader: Fixed type checking in symbol lookup.
parent
8aab67d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
preloader.c
loader/preloader.c
+3
-3
No files found.
loader/preloader.c
View file @
51d84822
...
...
@@ -761,7 +761,7 @@ static unsigned int elf_hash( const char *name )
/*
* Find a symbol in the symbol table of the executable loaded
*/
static
void
*
find_symbol
(
const
ElfW
(
Phdr
)
*
phdr
,
int
num
,
const
char
*
var
)
static
void
*
find_symbol
(
const
ElfW
(
Phdr
)
*
phdr
,
int
num
,
const
char
*
var
,
int
type
)
{
const
ElfW
(
Dyn
)
*
dyn
=
NULL
;
const
ElfW
(
Phdr
)
*
ph
;
...
...
@@ -817,7 +817,7 @@ static void *find_symbol( const ElfW(Phdr) *phdr, int num, const char *var )
while
(
idx
!=
STN_UNDEF
)
{
if
(
(
ELF32_ST_BIND
(
symtab
[
idx
].
st_info
)
==
STT_OBJECT
)
&&
if
(
symtab
[
idx
].
st_info
==
ELF32_ST_INFO
(
STB_GLOBAL
,
type
)
&&
!
wld_strcmp
(
strings
+
symtab
[
idx
].
st_name
,
var
))
{
#ifdef DUMP_SYMS
...
...
@@ -991,7 +991,7 @@ void* wld_start( void **stack )
/* store pointer to the preload info into the appropriate main binary variable */
wine_main_preload_info
=
find_symbol
(
main_binary_map
.
l_phdr
,
main_binary_map
.
l_phnum
,
"wine_main_preload_info"
);
"wine_main_preload_info"
,
STT_OBJECT
);
if
(
wine_main_preload_info
)
*
wine_main_preload_info
=
preload_info
;
else
wld_printf
(
"wine_main_preload_info not found
\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