[PATCH] jit: fix build with LLVM-21
Holger Hoffstätte <holger@applied-asynchrony.com>
From: Holger Hoffstätte <holger@applied-asynchrony.com>
To: pgsql-hackers@postgresql.org
Date: 2025-09-08T13:20:38Z
Lists: pgsql-hackers
Attachments
- llvm21.patch (text/x-patch)
(please cc: me on replies) Hello! I tried building against LLVM-21 and noticed that a function for symbol lookup was renamed (without semantic changes), breaking the LLVM JIT. The following patch fixes this by adding a version guard. It applies equally to both master and 17.6. Passes the test suite and verified on 17.6 with the jit example from the documentation. cheers, Holger
Commits
-
jit: Adjust AArch64-only code for LLVM 21.
- 55164852d3cd 15.16 landed
- 600acd34b09a 16.12 landed
- 60215eae7c42 17.8 landed
- 912cfa3146ce 18.2 landed
- 0dceba21d74f 19 (unreleased) landed
- 035a1f5aca4e 14.21 landed
-
jit: fix build with LLVM-21
- 59d6e843e9a8 13.23 landed
- fbfc36e9471b 14.20 landed
- 72a24bebc38f 15.15 landed
- 2670881afd91 16.11 landed
- 755f01ad743c 17.7 landed
- c11ac811a30d 18.0 landed
- 282d0bdee619 19 (unreleased) landed
-
Monkey-patch LLVM code to fix ARM relocation bug.
- 9044fc1d45a0 18.0 cited