Co-authored-by: Savannah Ostrowski <savannah@python.org>
--- /dev/null
+Fixed a bug where JIT stencils produced on Windows contained debug data. Patch by Chris Eibl.
Characteristics: dict[
typing.Literal["Flags"], list[dict[typing.Literal["Name"], str]]
]
+ Name: dict[typing.Literal["Value"], str]
Number: int
RawDataSize: int
Relocations: list[dict[typing.Literal["Relocation"], COFFRelocation]]
def _handle_section(
self, section: _schema.COFFSection, group: _stencils.StencilGroup
) -> None:
+ name = section["Name"]["Value"]
+ if name == ".debug$S":
+ # skip debug sections
+ return
flags = {flag["Name"] for flag in section["Characteristics"]["Flags"]}
if "SectionData" in section:
section_data_bytes = section["SectionData"]["Bytes"]