diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 2 | ||||
-rw-r--r-- | lld/ELF/OutputSections.h | 4 | ||||
-rw-r--r-- | lld/ELF/Writer.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index b291635e4e3..b697e1a3484 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -65,7 +65,7 @@ void OutputSection::writeHeaderTo(typename ELFT::Shdr *Shdr) { } OutputSection::OutputSection(StringRef Name, uint32_t Type, uint64_t Flags) - : Name(Name), Alignment(1), Flags(Flags), Type(Type) {} + : Name(Name), Flags(Flags), Alignment(1), Type(Type) {} template <typename ELFT> static bool compareByFilePosition(InputSection *A, InputSection *B) { diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index 6aecce7ae3e..8836f9381ea 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -48,7 +48,7 @@ public: uint32_t getPhdrFlags() const; - void updateAlignment(uint64_t Val) { + void updateAlignment(uint32_t Val) { if (Val > Alignment) Alignment = Val; } @@ -70,11 +70,11 @@ public: // The following fields correspond to Elf_Shdr members. uint64_t Size = 0; uint64_t Entsize = 0; - uint64_t Alignment = 0; uint64_t Offset = 0; uint64_t Flags = 0; uint64_t LMAOffset = 0; uint64_t Addr = 0; + uint32_t Alignment = 0; uint32_t ShName = 0; uint32_t Type = 0; uint32_t Info = 0; diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h index c1cf149a070..b89e984c9e5 100644 --- a/lld/ELF/Writer.h +++ b/lld/ELF/Writer.h @@ -35,10 +35,10 @@ struct PhdrEntry { uint64_t p_paddr = 0; uint64_t p_vaddr = 0; - uint64_t p_align = 0; uint64_t p_memsz = 0; uint64_t p_filesz = 0; uint64_t p_offset = 0; + uint32_t p_align = 0; uint32_t p_type = 0; uint32_t p_flags = 0; |