Skip to content

Commit 9184dbf

Browse files
committed
pythongh-130673: Gracefully handle section in jit build
1 parent 5e73ece commit 9184dbf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tools/jit/_targets.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,10 @@ def _handle_section(
312312
if section_type == "SHT_RELA":
313313
assert "SHF_INFO_LINK" in flags, flags
314314
assert not section["Symbols"]
315-
value, base = group.symbols[section["Info"]]
315+
maybe_symbol = group.symbols.get(section["Info"])
316+
if maybe_symbol is None:
317+
return
318+
value, base = maybe_symbol
316319
if value is _stencils.HoleValue.CODE:
317320
stencil = group.code
318321
else:

0 commit comments

Comments
 (0)