aboutsummaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorGreg McGary <gkm@fb.com>2020-09-19 12:28:33 -0700
committerGreg McGary <gkm@fb.com>2020-09-19 12:43:30 -0700
commitcba45514fb420ed45c721146d16ec9d9bd7f7f98 (patch)
treeddc093a537f0da021dc3e1d13d5547662122fea6 /lld
parentf5fa5b9fe3b02f26b38612f96cba19aceccbc2a3 (diff)
downloadllvm-cba45514fb420ed45c721146d16ec9d9bd7f7f98.zip
llvm-cba45514fb420ed45c721146d16ec9d9bd7f7f98.tar.gz
llvm-cba45514fb420ed45c721146d16ec9d9bd7f7f98.tar.bz2
align __TEXT,__unwind_info to 8 byte boundary
Diffstat (limited to 'lld')
-rw-r--r--lld/MachO/UnwindInfoSection.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/MachO/UnwindInfoSection.cpp b/lld/MachO/UnwindInfoSection.cpp
index 05848df..ac19ec1 100644
--- a/lld/MachO/UnwindInfoSection.cpp
+++ b/lld/MachO/UnwindInfoSection.cpp
@@ -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);