Skip to content

Commit 2743976

Browse files
mgornyestyxx
authored andcommitted
pythonGH-118836: Fix JIT build error when SHT_NOTE section is present (pythonGH-119000)
1 parent 652ac81 commit 2743976

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix an ``AssertionError`` when building with ``--enable-experimental-jit``
2+
and the compiler emits a ``SHT_NOTE`` section.

Tools/jit/_targets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def _handle_section(
349349
assert section_type in {
350350
"SHT_GROUP",
351351
"SHT_LLVM_ADDRSIG",
352+
"SHT_NOTE",
352353
"SHT_NULL",
353354
"SHT_STRTAB",
354355
"SHT_SYMTAB",

0 commit comments

Comments
 (0)