]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-118836: Fix JIT build error when SHT_NOTE section is present (GH-119000)
authorMichał Górny <mgorny@gentoo.org>
Mon, 13 May 2024 21:37:02 +0000 (23:37 +0200)
committerGitHub <noreply@github.com>
Mon, 13 May 2024 21:37:02 +0000 (14:37 -0700)
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",