align __TEXT,__unwind_info to 8 byte boundary
authorGreg McGary <gkm@fb.com>
Sat, 19 Sep 2020 19:28:33 +0000 (12:28 -0700)
committerGreg McGary <gkm@fb.com>
Sat, 19 Sep 2020 19:43:30 +0000 (12:43 -0700)
lld/MachO/UnwindInfoSection.cpp

index 05848df..ac19ec1 100644 (file)
@@ -68,7 +68,9 @@ using namespace lld::macho;
 // TODO(gkm): how do we align the 2nd-level pages?
 
 UnwindInfoSection::UnwindInfoSection()
-    : SyntheticSection(segment_names::text, section_names::unwindInfo) {}
+    : SyntheticSection(segment_names::text, section_names::unwindInfo) {
+  align = WordSize; // TODO(gkm): make this 4 KiB ?
+}
 
 bool UnwindInfoSection::isNeeded() const {
   return (compactUnwindSection != nullptr);