summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-12-12 22:46:37 +0000
committerFangrui Song <maskray@google.com>2018-12-12 22:46:37 +0000
commit967ce406d559c9945ff374b8e61e1cb1ddf89872 (patch)
tree5b1e17455e2db43831d3ba718b091102c5ab4cee /llvm
parentb7e1cae526cd5baacf927028c5d1b3debd627264 (diff)
downloadbcm5719-llvm-967ce406d559c9945ff374b8e61e1cb1ddf89872.tar.gz
bcm5719-llvm-967ce406d559c9945ff374b8e61e1cb1ddf89872.zip
[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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llvm-objcopy/ELF/Object.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/llvm-objcopy/ELF/Object.h b/llvm/tools/llvm-objcopy/ELF/Object.h
index bac23fe2a45..4b840651106 100644
--- a/llvm/tools/llvm-objcopy/ELF/Object.h
+++ b/llvm/tools/llvm-objcopy/ELF/Object.h
@@ -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;
OpenPOWER on IntegriCloud