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
186d6104
Commit
186d6104
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 ELF program segment header declaration.
Based on glibc. Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a6f0fe8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
elf_module.c
dlls/dbghelp/elf_module.c
+22
-2
No files found.
dlls/dbghelp/elf_module.c
View file @
186d6104
...
...
@@ -470,7 +470,17 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map*
{
if
(
fmap
->
addr_size
==
32
)
{
Elf32_Phdr
phdr
;
struct
{
UINT32
p_type
;
/* Segment type */
UINT32
p_offset
;
/* Segment file offset */
UINT32
p_vaddr
;
/* Segment virtual address */
UINT32
p_paddr
;
/* Segment physical address */
UINT32
p_filesz
;
/* Segment size in file */
UINT32
p_memsz
;
/* Segment size in memory */
UINT32
p_flags
;
/* Segment flags */
UINT32
p_align
;
/* Segment alignment */
}
phdr
;
if
(
elf_map_file_read
(
fmap
,
emfd
,
&
phdr
,
sizeof
(
phdr
),
fmap
->
u
.
elf
.
elfhdr
.
e_phoff
+
i
*
sizeof
(
phdr
))
&&
...
...
@@ -483,7 +493,17 @@ static BOOL elf_map_file(struct elf_map_file_data* emfd, struct image_file_map*
}
else
{
Elf64_Phdr
phdr
;
struct
{
UINT32
p_type
;
/* Segment type */
UINT32
p_flags
;
/* Segment flags */
UINT64
p_offset
;
/* Segment file offset */
UINT64
p_vaddr
;
/* Segment virtual address */
UINT64
p_paddr
;
/* Segment physical address */
UINT64
p_filesz
;
/* Segment size in file */
UINT64
p_memsz
;
/* Segment size in memory */
UINT64
p_align
;
/* Segment alignment */
}
phdr
;
if
(
elf_map_file_read
(
fmap
,
emfd
,
&
phdr
,
sizeof
(
phdr
),
fmap
->
u
.
elf
.
elfhdr
.
e_phoff
+
i
*
sizeof
(
phdr
))
&&
...
...
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