1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[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 fc13f3f80a
commit bc259287ab

View File

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