Skip to content

Commit

Permalink
readobj/pe: print FileAlignment (gimli-rs#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc authored Sep 30, 2021
1 parent 6e474d9 commit 24b5663
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/examples/src/readobj/pe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ fn print_optional(p: &mut Printer<'_>, header: &impl ImageOptionalHeader) {
p.field_hex("BaseOfCode", header.base_of_code());
p.field_hex("ImageBase", header.image_base());
p.field_hex("SectionAlignment", header.section_alignment());
p.field_hex("FileAlignment", header.file_alignment());
p.field(
"MajorOperatingSystemVersion",
header.major_operating_system_version(),
Expand Down
1 change: 1 addition & 0 deletions crates/examples/testfiles/pe/base-gnu.exe.readobj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ImageOptionalHeader {
BaseOfCode: 0x1000
ImageBase: 0x140000000
SectionAlignment: 0x1000
FileAlignment: 0x200
MajorOperatingSystemVersion: 4
MinorOperatingSystemVersion: 0
MajorImageVersion: 0
Expand Down
1 change: 1 addition & 0 deletions crates/examples/testfiles/pe/base.exe.readobj.0
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ ImageOptionalHeader {
BaseOfCode: 0x1000
ImageBase: 0x400000
SectionAlignment: 0x1000
FileAlignment: 0x200
MajorOperatingSystemVersion: 6
MinorOperatingSystemVersion: 0
MajorImageVersion: 0
Expand Down

0 comments on commit 24b5663

Please sign in to comment.