Skip to content

Commit d84cd2d

Browse files
committed
Put Brandt's patch in the right place :)
1 parent 1b4aba6 commit d84cd2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/jit/_stencils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def process_relocations(
291291
hole.kind
292292
in {"R_AARCH64_CALL26", "R_AARCH64_JUMP26", "ARM64_RELOC_BRANCH26"}
293293
and hole.value is HoleValue.ZERO
294+
and hole.symbol not in self.symbols
294295
):
295296
hole.func = "patch_aarch64_trampoline"
296297
hole.need_state = True
@@ -320,7 +321,6 @@ def process_relocations(
320321
elif (
321322
hole.kind in {"IMAGE_REL_AMD64_REL32"}
322323
and hole.value is HoleValue.ZERO
323-
and hole.symbol not in self.symbols
324324
):
325325
raise ValueError(
326326
f"Add PyAPI_FUNC(...) or PyAPI_DATA(...) to declaration of {hole.symbol}!"

0 commit comments

Comments
 (0)