Skip to content

Commit 6c4fab1

Browse files
committed
skip debug COFF sections on Windows
1 parent fa9519f commit 6c4fab1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tools/jit/_targets.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ class _COFF(
267267
def _handle_section(
268268
self, section: _schema.COFFSection, group: _stencils.StencilGroup
269269
) -> None:
270+
name = section["Name"]["Value"]
271+
if name == ".debug$S":
272+
# skip debug sections
273+
return
270274
flags = {flag["Name"] for flag in section["Characteristics"]["Flags"]}
271275
if "SectionData" in section:
272276
section_data_bytes = section["SectionData"]["Bytes"]

0 commit comments

Comments
 (0)