[lld-macho] Have all load commands aligned to the word size
authorJez Ng <jezng@fb.com>
Wed, 11 Jan 2023 07:23:15 +0000 (02:23 -0500)
committerJez Ng <jezng@fb.com>
Wed, 25 Jan 2023 01:11:04 +0000 (20:11 -0500)
commit4f2a4617936fd73a5fe18f8e12a02b0975ce7643
tree4ac690bc74deaa3073f8a31dc977e31727bde13d
parent388b8c16c5610a54c639bb74e3c8de161e8ca1c6
[lld-macho] Have all load commands aligned to the word size

This is what ld64 does, and also what we already do for most of the
other load commands. I'm not aware of a good way to test this, but I
don't think it really matters.

Differential Revision: https://reviews.llvm.org/D141462
lld/MachO/Writer.cpp