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
f939b085
Commit
f939b085
authored
Jun 23, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Elf for wine and spec definitions.
Enhancement over previous fix (we don't need to insert NOTYPE symbols in our public symbol table, so drop them as early as possible).
parent
2ad04cae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
elf_module.c
dlls/dbghelp/elf_module.c
+17
-17
No files found.
dlls/dbghelp/elf_module.c
View file @
f939b085
...
...
@@ -291,21 +291,25 @@ static void elf_hash_symtab(struct module* module, struct pool* pool,
symname
=
strp
+
symp
->
st_name
;
if
(
ELF32_ST_TYPE
(
symp
->
st_info
)
==
STT_FILE
)
/* handle some specific symtab (that we'll throw away when done) */
switch
(
ELF32_ST_TYPE
(
symp
->
st_info
))
{
case
STT_FILE
:
compiland
=
symname
?
symt_new_compiland
(
module
,
source_new
(
module
,
NULL
,
symname
))
:
NULL
;
continue
;
}
for
(
j
=
0
;
thunks
[
j
].
symname
;
j
++
)
{
if
(
!
strcmp
(
symname
,
thunks
[
j
].
symname
))
case
STT_NOTYPE
:
/* we are only interested in wine markers inserted by winebuild */
for
(
j
=
0
;
thunks
[
j
].
symname
;
j
++
)
{
thunks
[
j
].
rva_start
=
symp
->
st_value
;
thunks
[
j
].
rva_end
=
symp
->
st_value
+
symp
->
st_size
;
break
;
if
(
!
strcmp
(
symname
,
thunks
[
j
].
symname
))
{
thunks
[
j
].
rva_start
=
symp
->
st_value
;
thunks
[
j
].
rva_end
=
symp
->
st_value
+
symp
->
st_size
;
break
;
}
}
continue
;
}
if
(
thunks
[
j
].
symname
)
continue
;
/* FIXME: we don't need to handle them (GCC internals)
* Moreover, they screw up our symbol lookup :-/
...
...
@@ -550,9 +554,6 @@ static int elf_new_wine_thunks(struct module* module, struct hash_table* ht_symt
ELF32_ST_BIND
(
ste
->
symp
->
st_info
)
==
STB_LOCAL
,
addr
,
ste
->
symp
->
st_size
,
NULL
);
break
;
case
STT_NOTYPE
:
/* at least winebuild specific symbols */
break
;
default:
FIXME
(
"Shouldn't happen
\n
"
);
break
;
...
...
@@ -612,11 +613,10 @@ static int elf_new_public_symbols(struct module* module, struct hash_table* symt
hash_table_iter_init
(
symtab
,
&
hti
,
NULL
);
while
((
ste
=
hash_table_iter_up
(
&
hti
)))
{
if
(
ELF32_ST_TYPE
(
ste
->
symp
->
st_info
)
!=
STT_NOTYPE
)
symt_new_public
(
module
,
ste
->
compiland
,
ste
->
ht_elt
.
name
,
module
->
elf_info
->
elf_addr
+
ste
->
symp
->
st_value
,
ste
->
symp
->
st_size
,
TRUE
/* FIXME */
,
ELF32_ST_TYPE
(
ste
->
symp
->
st_info
)
==
STT_FUNC
);
symt_new_public
(
module
,
ste
->
compiland
,
ste
->
ht_elt
.
name
,
module
->
elf_info
->
elf_addr
+
ste
->
symp
->
st_value
,
ste
->
symp
->
st_size
,
TRUE
/* FIXME */
,
ELF32_ST_TYPE
(
ste
->
symp
->
st_info
)
==
STT_FUNC
);
}
return
TRUE
;
}
...
...
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