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.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Nice catch. The test seems really brittle though, since it depends on the exact offset. Can you instead ask for an alignment larger than the previous default, then regex check that the offset has sufficient trailing zeros? (hopefully make the alignment large enough that there is a low probability that it could happen by accident, but small enough that the resulting filesize isn't enormous/the test is still fast to execute)
Comment Actions
- The typo is fixed
- yaml2obj-elf-rel.yaml and yaml2obj-elf-section-basic.yaml fixed by a separate commit rL241669 using regex.
Typo 'accoun'