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
cf06ef64
Commit
cf06ef64
authored
Dec 26, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix ELF file computation on 64bit systems.
parent
4b5641ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
elf_module.c
dlls/dbghelp/elf_module.c
+5
-5
No files found.
dlls/dbghelp/elf_module.c
View file @
cf06ef64
...
@@ -102,8 +102,8 @@ const char* elf_map_section(struct image_section_map* ism)
...
@@ -102,8 +102,8 @@ const char* elf_map_section(struct image_section_map* ism)
{
{
struct
elf_file_map
*
fmap
=
&
ism
->
fmap
->
u
.
elf
;
struct
elf_file_map
*
fmap
=
&
ism
->
fmap
->
u
.
elf
;
unsigned
pgsz
=
getpagesize
();
unsigned
long
pgsz
=
getpagesize
();
unsigned
ofst
,
size
;
unsigned
long
ofst
,
size
;
assert
(
ism
->
fmap
->
modtype
==
DMT_ELF
);
assert
(
ism
->
fmap
->
modtype
==
DMT_ELF
);
if
(
ism
->
sidx
<
0
||
ism
->
sidx
>=
ism
->
fmap
->
u
.
elf
.
elfhdr
.
e_shnum
||
if
(
ism
->
sidx
<
0
||
ism
->
sidx
>=
ism
->
fmap
->
u
.
elf
.
elfhdr
.
e_shnum
||
...
@@ -168,8 +168,8 @@ void elf_unmap_section(struct image_section_map* ism)
...
@@ -168,8 +168,8 @@ void elf_unmap_section(struct image_section_map* ism)
if
(
ism
->
sidx
>=
0
&&
ism
->
sidx
<
fmap
->
elfhdr
.
e_shnum
&&
fmap
->
sect
[
ism
->
sidx
].
mapped
!=
IMAGE_NO_MAP
)
if
(
ism
->
sidx
>=
0
&&
ism
->
sidx
<
fmap
->
elfhdr
.
e_shnum
&&
fmap
->
sect
[
ism
->
sidx
].
mapped
!=
IMAGE_NO_MAP
)
{
{
unsigned
pgsz
=
getpagesize
();
unsigned
long
pgsz
=
getpagesize
();
unsigned
ofst
,
size
;
unsigned
long
ofst
,
size
;
ofst
=
fmap
->
sect
[
ism
->
sidx
].
shdr
.
sh_offset
&
~
(
pgsz
-
1
);
ofst
=
fmap
->
sect
[
ism
->
sidx
].
shdr
.
sh_offset
&
~
(
pgsz
-
1
);
size
=
((
fmap
->
sect
[
ism
->
sidx
].
shdr
.
sh_offset
+
size
=
((
fmap
->
sect
[
ism
->
sidx
].
shdr
.
sh_offset
+
...
@@ -236,7 +236,7 @@ static BOOL elf_map_file(const WCHAR* filenameW, struct image_file_map* fmap)
...
@@ -236,7 +236,7 @@ static BOOL elf_map_file(const WCHAR* filenameW, struct image_file_map* fmap)
struct
stat
statbuf
;
struct
stat
statbuf
;
int
i
;
int
i
;
Elf_Phdr
phdr
;
Elf_Phdr
phdr
;
unsigned
tmp
,
page_mask
=
getpagesize
()
-
1
;
unsigned
long
tmp
,
page_mask
=
getpagesize
()
-
1
;
char
*
filename
;
char
*
filename
;
unsigned
len
;
unsigned
len
;
BOOL
ret
=
FALSE
;
BOOL
ret
=
FALSE
;
...
...
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