mirror of
https://github.com/python/cpython.git
synced 2025-12-07 13:50:06 +00:00
GH-142050: Jit stencils on Windows contain debug data (#142052)
Co-authored-by: Savannah Ostrowski <savannah@python.org>
This commit is contained in:
parent
c0c65141b3
commit
618dc36714
3 changed files with 6 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
Fixed a bug where JIT stencils produced on Windows contained debug data. Patch by Chris Eibl.
|
||||
|
|
@ -89,6 +89,7 @@ class COFFSection(typing.TypedDict):
|
|||
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]]
|
||||
|
|
|
|||
|
|
@ -267,6 +267,10 @@ class _COFF(
|
|||
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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue