bjorn3 labeled issue #5544:
.clifTest CaseAny code which uses
global_valueor acallto a function not marked as colocated.Steps to Reproduce
- Compile with
is_picfor AArch64Expected Results
Object file has a GOT relocation and loads the address from the GOT.
Actual Results
Object file has an absolute relocation in a text section. This causes the dynamic linker to crash on macOS as the text segment is read-only.
Versions and Environment
Cranelift version or commit: 44913825b5e93d40ea4ca4fb3d03ab3aa15e1714
Operating system: macOS
Architecture: AArch64
Extra Info
Likely the root cause of https://bytecodealliance.zulipchat.com/#narrow/stream/217117-cranelift/topic/Tricks.20with.20linkage.20internal.20.2F.20module.20external.20functions.3F
bjorn3 opened issue #5544:
.clifTest CaseAny code which uses
global_valueor acallto a function not marked as colocated.Steps to Reproduce
- Compile with
is_picfor AArch64Expected Results
Object file has a GOT relocation and loads the address from the GOT.
Actual Results
Object file has an absolute relocation in a text section. This causes the dynamic linker to crash on macOS as the text segment is read-only.
Versions and Environment
Cranelift version or commit: 44913825b5e93d40ea4ca4fb3d03ab3aa15e1714
Operating system: macOS
Architecture: AArch64
Extra Info
Likely the root cause of https://bytecodealliance.zulipchat.com/#narrow/stream/217117-cranelift/topic/Tricks.20with.20linkage.20internal.20.2F.20module.20external.20functions.3F
bjorn3 labeled issue #5544:
.clifTest CaseAny code which uses
global_valueor acallto a function not marked as colocated.Steps to Reproduce
- Compile with
is_picfor AArch64Expected Results
Object file has a GOT relocation and loads the address from the GOT.
Actual Results
Object file has an absolute relocation in a text section. This causes the dynamic linker to crash on macOS as the text segment is read-only.
Versions and Environment
Cranelift version or commit: 44913825b5e93d40ea4ca4fb3d03ab3aa15e1714
Operating system: macOS
Architecture: AArch64
Extra Info
Likely the root cause of https://bytecodealliance.zulipchat.com/#narrow/stream/217117-cranelift/topic/Tricks.20with.20linkage.20internal.20.2F.20module.20external.20functions.3F
jameysharp closed issue #5544:
.clifTest CaseAny code which uses
global_valueor acallto a function not marked as colocated.Steps to Reproduce
- Compile with
is_picfor AArch64Expected Results
Object file has a GOT relocation and loads the address from the GOT.
Actual Results
Object file has an absolute relocation in a text section. This causes the dynamic linker to crash on macOS as the text segment is read-only.
Versions and Environment
Cranelift version or commit: 44913825b5e93d40ea4ca4fb3d03ab3aa15e1714
Operating system: macOS
Architecture: AArch64
Extra Info
Likely the root cause of https://bytecodealliance.zulipchat.com/#narrow/stream/217117-cranelift/topic/Tricks.20with.20linkage.20internal.20.2F.20module.20external.20functions.3F
Last updated: Dec 13 2025 at 21:03 UTC