Skip to content

Commit c5b23ab

Browse files
tstellartru
authored andcommitted
JITLink: Add missing EHFrame NULL terminator on aarch64/ELF
This fixes test failures on AArch64 with libgcc-13: Clang :: Interpreter/global-dtor.cpp Clang-Unit :: Interpreter/./ClangReplInterpreterTests/2/4 Reviewed By: lhames, v.g.vassilev Differential Revision: https://reviews.llvm.org/D146067 (cherry picked from commit 68c14f5)
1 parent 2352a1b commit c5b23ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ void link_ELF_aarch64(std::unique_ptr<LinkGraph> G,
552552
Config.PrePrunePasses.push_back(EHFrameEdgeFixer(
553553
".eh_frame", 8, aarch64::Pointer32, aarch64::Pointer64,
554554
aarch64::Delta32, aarch64::Delta64, aarch64::NegDelta32));
555+
Config.PrePrunePasses.push_back(EHFrameNullTerminator(".eh_frame"));
555556

556557
// Add a mark-live pass.
557558
if (auto MarkLive = Ctx->getMarkLivePass(TT))

0 commit comments

Comments
 (0)