Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Jit stencils should not contain debug data. Only Windows was affected. Fixed
by Chris Eibl.
1 change: 1 addition & 0 deletions Tools/jit/_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
4 changes: 4 additions & 0 deletions Tools/jit/_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Loading