[llvm-objcopy] Change Segment::Type from uint64_t to uint32_t

Summary:
In both Elf{32,64}_Phdr, the field Elf{32,64}_World p_type is uint32_t.

Also reorder the fields to be similar to Elf64_Phdr (which is different
from Elf32_Phdr but quite similar).

Reviewers: rupprecht, jhenderson, jakehehrlich, alexshap, espindola

Reviewed By: rupprecht

Subscribers: emaste, arichardson, llvm-commits

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

llvm-svn: 348985
This commit is contained in:
Fangrui Song 2018-12-12 22:46:37 +00:00
parent b7e1cae526
commit 967ce406d5
1 changed files with 6 additions and 6 deletions

View File

@ -256,16 +256,16 @@ private:
std::set<const SectionBase *, SectionCompare> Sections;
public:
uint64_t Align;
uint64_t FileSize;
uint32_t Type;
uint32_t Flags;
uint32_t Index;
uint64_t MemSize;
uint64_t Offset;
uint64_t PAddr;
uint64_t Type;
uint64_t VAddr;
uint64_t PAddr;
uint64_t FileSize;
uint64_t MemSize;
uint64_t Align;
uint32_t Index;
uint64_t OriginalOffset;
Segment *ParentSegment = nullptr;
ArrayRef<uint8_t> Contents;