https://github.com/python/cpython/commit/29a2f9cc286f6cef8a359fc7022fe9d480a2eb79 commit: 29a2f9cc286f6cef8a359fc7022fe9d480a2eb79 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: brandtbucher <[email protected]> date: 2024-05-13T22:17:34Z summary:
[3.13] GH-118836: Fix JIT build error when SHT_NOTE section is present (GH-119020) (cherry picked from commit e04cd964eb4eee1b0ae5b2c34727abce6c0fb7f0) Co-authored-by: Michał Górny <[email protected]> files: A Misc/NEWS.d/next/Build/2024-05-13-15-57-58.gh-issue-118836.7yN1iB.rst M 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 index 00000000000000..5212af7b32b940 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2024-05-13-15-57-58.gh-issue-118836.7yN1iB.rst @@ -0,0 +1,2 @@ +Fix an ``AssertionError`` when building with ``--enable-experimental-jit`` +and the compiler emits a ``SHT_NOTE`` section. diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py index 023ef498a21d7c..b020f49cf4a2c1 100644 --- a/Tools/jit/_targets.py +++ b/Tools/jit/_targets.py @@ -349,6 +349,7 @@ def _handle_section( assert section_type in { "SHT_GROUP", "SHT_LLVM_ADDRSIG", + "SHT_NOTE", "SHT_NULL", "SHT_STRTAB", "SHT_SYMTAB", _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
