]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] GH-118836: Fix JIT build error when SHT_NOTE section is present (GH-119020)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 May 2024 22:17:34 +0000 (00:17 +0200)
committerGitHub <noreply@github.com>
Mon, 13 May 2024 22:17:34 +0000 (22:17 +0000)
(cherry picked from commit e04cd964eb4eee1b0ae5b2c34727abce6c0fb7f0)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
Misc/NEWS.d/next/Build/2024-05-13-15-57-58.gh-issue-118836.7yN1iB.rst [new file with mode: 0644]
Tools/jit/_targets.py

diff --git a/Misc/NEWS.d/next/Build/2024-05-13-15-57-58.gh-issue-118836.7yN1iB.rst b/Misc/NEWS.d/next/Build/2024-05-13-15-57-58.gh-issue-118836.7yN1iB.rst
new file mode 100644 (file)
index 0000000..5212af7
--- /dev/null
@@ -0,0 +1,2 @@
+Fix an ``AssertionError`` when building with ``--enable-experimental-jit``
+and the compiler emits a ``SHT_NOTE`` section.
index 023ef498a21d7c46781411114364d553a3c784db..b020f49cf4a2c175cefb285547bd9ebbd9e6a684 100644 (file)
@@ -349,6 +349,7 @@ class _ELF(
             assert section_type in {
                 "SHT_GROUP",
                 "SHT_LLVM_ADDRSIG",
+                "SHT_NOTE",
                 "SHT_NULL",
                 "SHT_STRTAB",
                 "SHT_SYMTAB",