[yaml2obj, COFF] Correctly handle section alignment
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 17 Mar 2016 05:43:26 +0000 (05:43 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 17 Mar 2016 05:43:26 +0000 (05:43 +0000)
commit6f66f0a343256ce8a03890d9a80447592b748137
tree45c235c17a001a07eaf73e42bab2e222b597c56c
parent0f53cf1c7f35f063f47e242614d2bd2933e38c7c
[yaml2obj, COFF] Correctly handle section alignment

The section alignment field was marked optional but not provided a
default value: initialize it with 0.

While we are here, ensure that the section alignment is plausible.

llvm-svn: 263692
llvm/test/Object/yaml2obj-coff-invalid-alignment.test [new file with mode: 0644]
llvm/tools/yaml2obj/yaml2coff.cpp