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
cb7453ff
Commit
cb7453ff
authored
Dec 07, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: IMAGE_SCN_ALIGN_??? are not the bit fields, but the values masked by…
winedump: IMAGE_SCN_ALIGN_??? are not the bit fields, but the values masked by IMAGE_SCN_ALIGN_MASK.
parent
2d9046e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
pe.c
tools/winedump/pe.c
+21
-10
No files found.
tools/winedump/pe.c
View file @
cb7453ff
...
...
@@ -365,8 +365,8 @@ static void dump_sections(const void* addr, unsigned num_sect)
printf
(
" line # offs: %-8u line #'s: %-8u
\n
"
,
sectHead
->
PointerToLinenumbers
,
sectHead
->
NumberOfLinenumbers
);
printf
(
" characteristics: 0x%08x
\n
"
,
sectHead
->
Characteristics
);
printf
(
"
"
);
#define X(b,s) if (sectHead->Characteristics & b) printf(
s " "
)
printf
(
" "
);
#define X(b,s) if (sectHead->Characteristics & b) printf(
" " s
)
/* #define IMAGE_SCN_TYPE_REG 0x00000000 - Reserved */
/* #define IMAGE_SCN_TYPE_DSECT 0x00000001 - Reserved */
/* #define IMAGE_SCN_TYPE_NOLOAD 0x00000002 - Reserved */
...
...
@@ -394,14 +394,25 @@ static void dump_sections(const void* addr, unsigned num_sect)
X
(
IMAGE_SCN_MEM_LOCKED
,
"MEM_LOCKED"
);
X
(
IMAGE_SCN_MEM_PRELOAD
,
"MEM_PRELOAD"
);
X
(
IMAGE_SCN_ALIGN_1BYTES
,
"ALIGN_1BYTES"
);
X
(
IMAGE_SCN_ALIGN_2BYTES
,
"ALIGN_2BYTES"
);
X
(
IMAGE_SCN_ALIGN_4BYTES
,
"ALIGN_4BYTES"
);
X
(
IMAGE_SCN_ALIGN_8BYTES
,
"ALIGN_8BYTES"
);
X
(
IMAGE_SCN_ALIGN_16BYTES
,
"ALIGN_16BYTES"
);
X
(
IMAGE_SCN_ALIGN_32BYTES
,
"ALIGN_32BYTES"
);
X
(
IMAGE_SCN_ALIGN_64BYTES
,
"ALIGN_64BYTES"
);
/* 0x00800000 - Unused */
switch
(
sectHead
->
Characteristics
&
IMAGE_SCN_ALIGN_MASK
)
{
#define X2(b,s) case b: printf(" " s); break;
X2
(
IMAGE_SCN_ALIGN_1BYTES
,
"ALIGN_1BYTES"
);
X2
(
IMAGE_SCN_ALIGN_2BYTES
,
"ALIGN_2BYTES"
);
X2
(
IMAGE_SCN_ALIGN_4BYTES
,
"ALIGN_4BYTES"
);
X2
(
IMAGE_SCN_ALIGN_8BYTES
,
"ALIGN_8BYTES"
);
X2
(
IMAGE_SCN_ALIGN_16BYTES
,
"ALIGN_16BYTES"
);
X2
(
IMAGE_SCN_ALIGN_32BYTES
,
"ALIGN_32BYTES"
);
X2
(
IMAGE_SCN_ALIGN_64BYTES
,
"ALIGN_64BYTES"
);
X2
(
IMAGE_SCN_ALIGN_128BYTES
,
"ALIGN_128BYTES"
);
X2
(
IMAGE_SCN_ALIGN_256BYTES
,
"ALIGN_256BYTES"
);
X2
(
IMAGE_SCN_ALIGN_512BYTES
,
"ALIGN_512BYTES"
);
X2
(
IMAGE_SCN_ALIGN_1024BYTES
,
"ALIGN_1024BYTES"
);
X2
(
IMAGE_SCN_ALIGN_2048BYTES
,
"ALIGN_2048BYTES"
);
X2
(
IMAGE_SCN_ALIGN_4096BYTES
,
"ALIGN_4096BYTES"
);
X2
(
IMAGE_SCN_ALIGN_8192BYTES
,
"ALIGN_8192BYTES"
);
#undef X2
}
X
(
IMAGE_SCN_LNK_NRELOC_OVFL
,
"LNK_NRELOC_OVFL"
);
...
...
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