[yaml2obj] Align section content using AddressAlign field's value
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 8 Jul 2015 10:12:40 +0000 (10:12 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 8 Jul 2015 10:12:40 +0000 (10:12 +0000)
commit080d7a819f4fd04883e6ac2e13617f5c8a14be6d
treed67ae99466f3a9e52a5f8737e9cfe19d4cf6b882
parent8bde8570885989556d8f333a219f073a6dbdcb1d
[yaml2obj] Align section content using AddressAlign field's value

Use AddressAlign field's value to properly align sections content in the
yaml2obj tool. Before this change the yaml2obj ignored AddressAlign and
always aligned section on 16 bytes boundary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241674 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/yaml2obj-elf-alignment.yaml [new file with mode: 0644]
tools/yaml2obj/yaml2elf.cpp