[ELF] Change std::max<uint64_t> to uint32_t for section alignment
authorFangrui Song <maskray@google.com>
Fri, 26 Apr 2019 04:07:58 +0000 (04:07 +0000)
committerFangrui Song <maskray@google.com>
Fri, 26 Apr 2019 04:07:58 +0000 (04:07 +0000)
commit98b70f6705f5aefb9fadb4b2e23db9dc5f3d12ef
tree1a7d342d0b6134791c92a25d16fde8ec65339290
parent9e441aee509f8a4d1c6a42b3da6ab9869e777051
[ELF] Change std::max<uint64_t> to uint32_t for section alignment

Summary:
We use `uint32_t SectionBase::Alignment` and `uint32_t
PhdrEntry::p_align` despite alignments being 64 bits in ELF64.
Fix the std::max template arguments accordingly.

The currently 160-byte InputSection will become 168 bytes if we make SectionBase::Alignment uint64_t.

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

llvm-svn: 359268
lld/ELF/InputSection.cpp