projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5fa5b9
)
align __TEXT,__unwind_info to 8 byte boundary
author
Greg McGary
<gkm@fb.com>
Sat, 19 Sep 2020 19:28:33 +0000
(12:28 -0700)
committer
Greg McGary
<gkm@fb.com>
Sat, 19 Sep 2020 19:43:30 +0000
(12:43 -0700)
lld/MachO/UnwindInfoSection.cpp
patch
|
blob
|
history
diff --git
a/lld/MachO/UnwindInfoSection.cpp
b/lld/MachO/UnwindInfoSection.cpp
index
05848df
..
ac19ec1
100644
(file)
--- 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);