Steps:
Use strip or objcopy on a PE file with a PE target.
Optionally pass --file-alignment 0x1000 to objcopy
Result:
The resulting PE file has a correct file alignment value in the optional
header, but the sections still have alignments in the file smaller than required
(0x200)
Expected:
The sections must be aligned to the file alignment value in the PE file.
Addition:
Passing --section-alignment and --file-alignment values to objcopy sometimes
leads to completely messed up alignment. I couldn't manage to get the sections
aligned identical in VA and in the file.
--
Summary: PE file alignment ignored in objcopy and strip
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: timo dot kreuzer at reactos dot org
CC: bug-binutils at gnu dot org
GCC build triplet: i686-pc-mingw32
GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32
http://sourceware.org/bugzilla/show_bug.cgi?id=11822
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils