Commit 29e082c
Resolve CPU references lazily.
Since JuliaLang/julia#61527 (1.14.0-DEV.2614), the LowerPTLS pass may
emit calls to `jl_get_pgcstack_resolved`, a symbol that only exists
within the JIT and cannot be looked up using `jl_cglobal`, causing
the ResolveCPUReferences pass to error on such modules (as seen on
Windows CI, where the TLS getter cannot be lowered to a TP access).
As this pass only rewrites loads from `jl_` bindings, and such JIT-only
symbols are only ever called, resolve binding addresses lazily, i.e.,
only when actually replacing a load.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent a17a5b3 commit 29e082c
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
52 | | - | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
0 commit comments