We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__init_offsets
1 parent ccd1a5b commit 948fc66Copy full SHA for 948fc66
lld/MachO/SyntheticSections.cpp
@@ -1899,6 +1899,7 @@ void ObjCImageInfoSection::writeTo(uint8_t *buf) const {
1899
InitOffsetsSection::InitOffsetsSection()
1900
: SyntheticSection(segment_names::text, section_names::initOffsets) {
1901
flags = S_INIT_FUNC_OFFSETS;
1902
+ align = 4; // This section contains 32-bit integers.
1903
}
1904
1905
uint64_t InitOffsetsSection::getSize() const {
lld/test/MachO/init-offsets.s
@@ -27,7 +27,7 @@
27
# FLAGS-NEXT: addr
28
# FLAGS-NEXT: size 0x0000000000000010
29
# FLAGS-NEXT: offset
30
-# FLAGS-NEXT: align
+# FLAGS-NEXT: align 2^2 (4)
31
# FLAGS-NEXT: reloff 0
32
# FLAGS-NEXT: nreloc 0
33
# FLAGS-NEXT: type S_INIT_FUNC_OFFSETS
0 commit comments