[PATCH] D146067: JITLink: Add missing EHFrame NULL terminator on aarch64/ELF
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 14 10:16:25 PDT 2023
tstellar created this revision.
tstellar added reviewers: lhames, v.g.vassilev.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
tstellar requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This fixes test failures on AArch64 with libgcc-13:
Clang :: Interpreter/global-dtor.cpp
Clang-Unit :: Interpreter/./ClangReplInterpreterTests/2/4
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146067
Files:
llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
Index: llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
===================================================================
--- llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
+++ llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
@@ -552,6 +552,7 @@
Config.PrePrunePasses.push_back(EHFrameEdgeFixer(
".eh_frame", 8, aarch64::Pointer32, aarch64::Pointer64,
aarch64::Delta32, aarch64::Delta64, aarch64::NegDelta32));
+ Config.PrePrunePasses.push_back(EHFrameNullTerminator(".eh_frame"));
// Add a mark-live pass.
if (auto MarkLive = Ctx->getMarkLivePass(TT))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146067.505154.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230314/961a6405/attachment.bin>
More information about the llvm-commits
mailing list