@@ -34,6 +34,8 @@ DECLARE_SWIFT_SECTION(swift5_fieldmd)
34
34
DECLARE_SWIFT_SECTION(swift5_assocty)
35
35
DECLARE_SWIFT_SECTION(swift5_replace)
36
36
DECLARE_SWIFT_SECTION(swift5_replac2)
37
+ DECLARE_SWIFT_SECTION(swift5_builtin)
38
+ DECLARE_SWIFT_SECTION(swift5_capture)
37
39
}
38
40
39
41
#undef DECLARE_SWIFT_SECTION
@@ -65,10 +67,22 @@ static void swift_image_constructor() {
65
67
SWIFT_SECTION_RANGE (swift5_assocty),
66
68
SWIFT_SECTION_RANGE (swift5_replace),
67
69
SWIFT_SECTION_RANGE (swift5_replac2),
70
+ SWIFT_SECTION_RANGE (swift5_builtin),
71
+ SWIFT_SECTION_RANGE (swift5_capture),
68
72
};
69
73
70
74
#undef SWIFT_SECTION_RANGE
71
75
72
76
swift_addNewDSOImage (§ions);
73
77
}
74
78
79
+ __asm__ (" .section \" .note.swift_reflection_metadata\" , \" aw\" " );
80
+
81
+ static __attribute__ ((__used__))
82
+ __attribute__((__section__(" .note.swift_reflection_metadata" )))
83
+ __attribute__((__aligned__(1 )))
84
+ struct {
85
+ const char MagicString[sizeof (SWIFT_REFLECTION_METADATA_ELF_NOTE_MAGIC_STRING)];
86
+ const swift::MetadataSections *Sections;
87
+ } __attribute__((__packed__))
88
+ Note = {SWIFT_REFLECTION_METADATA_ELF_NOTE_MAGIC_STRING, §ions};
0 commit comments