[MachO] Pad section data to pointer size bytes
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Tue, 11 Feb 2020 22:51:49 +0000 (14:51 -0800)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Tue, 11 Feb 2020 22:52:21 +0000 (14:52 -0800)
commitbdc3c73454aa04eda74dff2e5061482e13ed4ee7
tree3565e9553ceb6e25fdc00a79404e36b161106c48
parentaedda89f656b286cff44756a4dcb50117051ebe9
[MachO] Pad section data to pointer size bytes

https://reviews.llvm.org/D74273

Pad macho section data to pointer size bytes, so that relocation
table and symbol table following section data will be pointer size
aligned.

Patch by pguo.
llvm/lib/MC/MachObjectWriter.cpp
llvm/test/MC/MachO/darwin-x86_64-diff-relocs.s
llvm/test/MC/MachO/variable-exprs.s