@@ -50,8 +50,6 @@ class SectionBase {
50
50
51
51
Kind kind () const { return (Kind)sectionKind; }
52
52
53
- StringRef name;
54
-
55
53
uint8_t sectionKind : 3 ;
56
54
57
55
// The next two bit fields are only used by InputSectionBase, but we
@@ -62,17 +60,19 @@ class SectionBase {
62
60
// Set for sections that should not be folded by ICF.
63
61
uint8_t keepUnique : 1 ;
64
62
63
+ uint8_t partition = 1 ;
64
+ uint32_t type;
65
+ StringRef name;
66
+
65
67
// The 1-indexed partition that this section is assigned to by the garbage
66
68
// collector, or 0 if this section is dead. Normally there is only one
67
69
// partition, so this will either be 0 or 1.
68
- uint8_t partition = 1 ;
69
70
elf::Partition &getPartition () const ;
70
71
71
72
// These corresponds to the fields in Elf_Shdr.
72
- uint32_t alignment;
73
73
uint64_t flags;
74
+ uint32_t alignment;
74
75
uint32_t entsize;
75
- uint32_t type;
76
76
uint32_t link;
77
77
uint32_t info;
78
78
@@ -95,8 +95,8 @@ class SectionBase {
95
95
constexpr SectionBase (Kind sectionKind, StringRef name, uint64_t flags,
96
96
uint32_t entsize, uint32_t alignment, uint32_t type,
97
97
uint32_t info, uint32_t link)
98
- : name(name), sectionKind(sectionKind), bss(false ), keepUnique(false ),
99
- alignment(alignment ), flags(flags), entsize(entsize ), type(type ),
98
+ : sectionKind(sectionKind), bss(false ), keepUnique(false ), type(type ),
99
+ name(name ), flags(flags), alignment(alignment ), entsize(entsize ),
100
100
link(link), info(info) {}
101
101
};
102
102
0 commit comments