Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-135904: Add tests for the JIT build process#136766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
brandtbucher wants to merge13 commits intopython:main
base:main
Choose a base branch
Loading
frombrandtbucher:jit-tests
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
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
PrevPrevious commit
NextNext commit
Ditto for ELF
  • Loading branch information
@brandtbucher
brandtbucher committedJul 17, 2025
commit9db056350efd7cad9ab24f083690acf06362bf2c
1 change: 1 addition & 0 deletionsTools/jit/_schema.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -102,6 +102,7 @@ class ELFSection(typing.TypedDict):
Info: int
Relocations: list[dict[typing.Literal["Relocation"], ELFRelocation]]
SectionData: dict[typing.Literal["Bytes"], list[int]]
Size: int
Symbols: list[dict[typing.Literal["Symbol"], _ELFSymbol]]
Type: dict[typing.Literal["Name"], str]

Expand Down
8 changes: 6 additions & 2 deletionsTools/jit/_targets.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -390,7 +390,7 @@ def _handle_section(
relocation = wrapped_relocation["Relocation"]
hole = self._handle_relocation(base, relocation, stencil.body)
stencil.holes.append(hole)
elif section_type=="SHT_PROGBITS":
elif section_typein {"SHT_PROGBITS", "SHT_NOBITS"}:
if "SHF_ALLOC" not in flags:
return
if "SHF_EXECINSTR" in flags:
Expand All@@ -399,7 +399,11 @@ def _handle_section(
else:
value = _stencils.HoleValue.DATA
stencil = group.data
section_data_bytes = section["SectionData"]["Bytes"]
if section_type == "SHT_PROGBITS":
section_data_bytes = section["SectionData"]["Bytes"]
else:
# Zeroed BSS data:
section_data_bytes = [0] * section["Size"]
if "SHF_WRITE" in flags:
assert value is _stencils.HoleValue.DATA
value = _stencils.HoleValue.WRITABLE
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp