[lld] cba4551 - align __TEXT,__unwind_info to 8 byte boundary
Greg McGary via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 19 12:44:07 PDT 2020
Author: Greg McGary
Date: 2020-09-19T12:43:30-07:00
New Revision: cba45514fb420ed45c721146d16ec9d9bd7f7f98
URL: https://github.com/llvm/llvm-project/commit/cba45514fb420ed45c721146d16ec9d9bd7f7f98
DIFF: https://github.com/llvm/llvm-project/commit/cba45514fb420ed45c721146d16ec9d9bd7f7f98.diff
LOG: align __TEXT,__unwind_info to 8 byte boundary
Added:
Modified:
lld/MachO/UnwindInfoSection.cpp
Removed:
################################################################################
diff --git a/lld/MachO/UnwindInfoSection.cpp b/lld/MachO/UnwindInfoSection.cpp
index 05848df43a99..ac19ec1586b7 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);
More information about the llvm-commits
mailing list