Skip to content

Commit ef78fd1

Browse files
committed
fix build
1 parent 222ef3b commit ef78fd1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Tools/jit/_targets.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,14 @@ def get_target(host: str) -> _COFF | _ELF | _MachO:
522522
args = ["-fms-runtime-lib=dll"]
523523
target = _COFF(host, args=args)
524524
elif re.fullmatch(r"x86_64-.*-linux-gnu", host):
525-
args = ["-fno-pic", "-mcmodel=medium", "-mlarge-data-threshold=0"]
525+
args = [
526+
# Jump tables generate R_X86_64_32S relocations, which assume a
527+
# signed 32-bit address space:
528+
"-fno-jump-tables",
529+
"-fno-pic",
530+
"-mcmodel=medium",
531+
"-mlarge-data-threshold=0",
532+
]
526533
target = _ELF(host, args=args)
527534
else:
528535
raise ValueError(host)

0 commit comments

Comments
 (0)