This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch binutils]: Fix Bug binutils/11822: PE file alignment ignored in objcopy and strip


Hello,

Passing --section-alignment and --file-alignment values to objcopy sometimes
leads to completely messed up alignment. Underlying issue was that valid
optional header FileAlignment was ignored for none-set linkinfo.  This isn't
correct assumption for objcopy.

ChangeLog

2014-08-21  Kai Tietz  <ktietz@redhat.com>

    PR binutils/11822
    * coffcode.h (coff_compute_section_file_positions): Keep
    FileAlignment valid as set.

Tested for x86_64-w64-mingw32, i686-w64-mingw32.  Ok for apply?

Regards,
Kai

Attachment: 0001-Fix-file-alignment-for-objcopy-for-pe-coff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]