Skip to content

Commit 60e0418

Browse files
Cody Tapscottvchuravy
authored andcommitted
Force .eh_frame emission on AArch64
We need to force the emission of the EH Frame section (currently done via SupportsCompactUnwindWithoutEHFrame in the MCObjectFileInfo for the target), since libunwind doesn't yet support dynamically registering compact unwind information at run-time.
1 parent 261a651 commit 60e0418

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/MC/MCObjectFileInfo.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) {
5656
MachO::S_ATTR_STRIP_STATIC_SYMS | MachO::S_ATTR_LIVE_SUPPORT,
5757
SectionKind::getReadOnly());
5858

59-
if (T.isOSDarwin() &&
60-
(T.getArch() == Triple::aarch64 || T.getArch() == Triple::aarch64_32))
61-
SupportsCompactUnwindWithoutEHFrame = true;
59+
// Disabled for now, since we need to emit EH Frames for stack unwinding in the JIT
60+
// if (T.isOSDarwin() &&
61+
// (T.getArch() == Triple::aarch64 || T.getArch() == Triple::aarch64_32))
62+
// SupportsCompactUnwindWithoutEHFrame = true;
6263

6364
if (T.isWatchABI())
6465
OmitDwarfIfHaveCompactUnwind = true;

0 commit comments

Comments
 (0)