We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222ef3b commit ef78fd1Copy full SHA for ef78fd1
Tools/jit/_targets.py
@@ -522,7 +522,14 @@ def get_target(host: str) -> _COFF | _ELF | _MachO:
522
args = ["-fms-runtime-lib=dll"]
523
target = _COFF(host, args=args)
524
elif re.fullmatch(r"x86_64-.*-linux-gnu", host):
525
- args = ["-fno-pic", "-mcmodel=medium", "-mlarge-data-threshold=0"]
+ 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
+ ]
533
target = _ELF(host, args=args)
534
else:
535
raise ValueError(host)
0 commit comments