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
849cf6ed
Commit
849cf6ed
authored
Mar 31, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use local dynamic section entry declaration.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
186d6104
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
elf_module.c
dlls/dbghelp/elf_module.c
+12
-4
No files found.
dlls/dbghelp/elf_module.c
View file @
849cf6ed
...
...
@@ -1106,7 +1106,11 @@ static BOOL elf_load_file_from_fmap(struct process* pcs, const WCHAR* filename,
if
(
fmap
->
addr_size
==
32
)
{
Elf32_Dyn
dyn
;
struct
{
INT32
d_tag
;
/* Dynamic entry type */
UINT32
d_val
;
/* Integer or address value */
}
dyn
;
do
{
...
...
@@ -1115,7 +1119,7 @@ static BOOL elf_load_file_from_fmap(struct process* pcs, const WCHAR* filename,
return
ret
;
if
(
dyn
.
d_tag
==
DT_DEBUG
)
{
elf_info
->
dbg_hdr_addr
=
dyn
.
d_
un
.
d_ptr
;
elf_info
->
dbg_hdr_addr
=
dyn
.
d_
val
;
if
(
load_offset
==
0
&&
dyn_addr
==
0
)
/* likely the case */
/* Assume this module (the Wine loader) has been
* loaded at its preferred address */
...
...
@@ -1128,7 +1132,11 @@ static BOOL elf_load_file_from_fmap(struct process* pcs, const WCHAR* filename,
}
else
{
Elf64_Dyn
dyn
;
struct
{
INT64
d_tag
;
/* Dynamic entry type */
UINT64
d_val
;
/* Integer or address value */
}
dyn
;
do
{
...
...
@@ -1137,7 +1145,7 @@ static BOOL elf_load_file_from_fmap(struct process* pcs, const WCHAR* filename,
return
ret
;
if
(
dyn
.
d_tag
==
DT_DEBUG
)
{
elf_info
->
dbg_hdr_addr
=
dyn
.
d_
un
.
d_ptr
;
elf_info
->
dbg_hdr_addr
=
dyn
.
d_
val
;
if
(
load_offset
==
0
&&
dyn_addr
==
0
)
/* likely the case */
/* Assume this module (the Wine loader) has been
* loaded at its preferred address */
...
...
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