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
1ecfff38
Commit
1ecfff38
authored
Jul 30, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: ELF hash table entries are always 32-bit on Linux.
parent
f8cdbecc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
preloader.c
loader/preloader.c
+6
-6
No files found.
loader/preloader.c
View file @
1ecfff38
...
...
@@ -940,10 +940,10 @@ static void *find_symbol( const ElfW(Phdr) *phdr, int num, const char *var, int
const
ElfW
(
Dyn
)
*
dyn
=
NULL
;
const
ElfW
(
Phdr
)
*
ph
;
const
ElfW
(
Sym
)
*
symtab
=
NULL
;
const
Elf
_Symndx
*
hashtab
=
NULL
;
const
Elf
32_Word
*
hashtab
=
NULL
;
const
Elf32_Word
*
gnu_hashtab
=
NULL
;
const
char
*
strings
=
NULL
;
Elf
_Symndx
idx
;
Elf
32_Word
idx
;
/* check the values */
#ifdef DUMP_SYMS
...
...
@@ -974,7 +974,7 @@ static void *find_symbol( const ElfW(Phdr) *phdr, int num, const char *var, int
if
(
dyn
->
d_tag
==
DT_SYMTAB
)
symtab
=
(
const
ElfW
(
Sym
)
*
)
dyn
->
d_un
.
d_ptr
;
if
(
dyn
->
d_tag
==
DT_HASH
)
hashtab
=
(
const
Elf
_Symndx
*
)
dyn
->
d_un
.
d_ptr
;
hashtab
=
(
const
Elf
32_Word
*
)
dyn
->
d_un
.
d_ptr
;
if
(
dyn
->
d_tag
==
DT_GNU_HASH
)
gnu_hashtab
=
(
const
Elf32_Word
*
)
dyn
->
d_un
.
d_ptr
;
#ifdef DUMP_SYMS
...
...
@@ -1007,9 +1007,9 @@ static void *find_symbol( const ElfW(Phdr) *phdr, int num, const char *var, int
else
if
(
hashtab
)
/* old style hash table */
{
const
unsigned
int
hash
=
wld_elf_hash
(
var
);
const
Elf
_Symndx
nbuckets
=
hashtab
[
0
];
const
Elf
_Symndx
*
buckets
=
hashtab
+
2
;
const
Elf
_Symndx
*
chains
=
buckets
+
nbuckets
;
const
Elf
32_Word
nbuckets
=
hashtab
[
0
];
const
Elf
32_Word
*
buckets
=
hashtab
+
2
;
const
Elf
32_Word
*
chains
=
buckets
+
nbuckets
;
for
(
idx
=
buckets
[
hash
%
nbuckets
];
idx
!=
STN_UNDEF
;
idx
=
chains
[
idx
])
{
...
...
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