outmac64: Fix the handling of section data alignment
commitdef81d5c71838aa1510340540c2efb4501180d0a
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 3 Feb 2016 01:15:03 +0000 (2 17:15 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 5 Feb 2016 19:19:29 +0000 (5 11:19 -0800)
tree5e3a4d529c908d04cef3db6221502f30acfdf40e
parentf0d92fd19ad01b99a93a766f482d2ecaa3ca91a8
outmac64: Fix the handling of section data alignment

Fix a number of places which failed to account for padding to
alignment of section data.  Also, fix confusion between aligning
section data in the linkable object code and final address alignment;
LLVM/Xcode always align section data to 4 bytes (with a comment saying
that it probably should be 8 bytes for 64-bit output) independent of the
section alignment.

This will need to be ported to the macho32 backend, as well; ideally
the two should be merged as they are really very similar and we don't
want to have these kinds of cross-porting problems.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
output/outmac64.c