[ELF] Move fixSectionAlignments() before first call to assignAddresses()
[ELF] Move fixSectionAlignments() before first call to assignAddresses()

The fixSectionAlignments() function may alter the alignment of some
OutputSections, this is likely to alter the addresses calculated earlier
in assignAddresses(). By moving the call to fixSectionAlignments() we
make sure that assignAddresses() is consistent with the early calculation
used for RangeThunks and the final call just before writing the image.

Differential Revision: https://reviews.llvm.org/D36739



git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@312636 91177308-0d34-0410-b5e6-96231b3b80d8

llvm-mirror/lld,llvm-mirror/lld