Skip to content

Commit 5f9ee81

Browse files
committed
Backport of LLVM code to fix ARM relocation bug.
Supply a new memory manager for RuntimeDyld that avoids putting ARM code too far apart. This is the code from llvm/llvm-project#71968, copied into our tree and moved into a new namespace llvm::backport, with minor adjustments to work on LLVM 12-18. This should fix the spate of crashes we've been receiving lately from users on ARM systems. XXX Ideally the LLVM project will commit this, and then we can resync with the code in the LLVM 19.x stable branch, instead of using the code from their PR, before we ship it! Reported-by: Anthonin Bonnefoy <[email protected]> Reviewed-by: Anthonin Bonnefoy <[email protected]> Discussion: https://postgr.es/m/CAO6_Xqr63qj%3DSx7HY6ZiiQ6R_JbX%2B-p6sTPwDYwTWZjUmjsYBg%40mail.gmail.com
1 parent 2e6a804 commit 5f9ee81

File tree

8 files changed

+680
-1
lines changed

8 files changed

+680
-1
lines changed

src/backend/jit/llvm/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ OBJS += \
4747
llvmjit.o \
4848
llvmjit_error.o \
4949
llvmjit_inline.o \
50-
llvmjit_wrap.o
50+
llvmjit_wrap.o \
51+
SectionMemoryManager.o
5152

5253
# Code generation
5354
OBJS += \

0 commit comments

Comments
 (0)