From 43d575a7b8371c53834000a396af9aa715839043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 13 May 2024 15:58:04 +0200 Subject: [PATCH] gh-118836: Fix JIT build error when SHT_NOTE section is present --- .../next/Build/2024-05-13-15-57-58.gh-issue-118836.7yN1iB.rst | 2 ++ Tools/jit/_targets.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2024-05-13-15-57-58.gh-issue-118836.7yN1iB.rst 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",