Skip to content

Remove support for is_pic#10390

Merged
abrown merged 1 commit intobytecodealliance:mainfrom
bjorn3:remove_cranelift_jit_pic_handling
Mar 20, 2025
Merged

Remove support for is_pic#10390
abrown merged 1 commit intobytecodealliance:mainfrom
bjorn3:remove_cranelift_jit_pic_handling

Conversation

@bjorn3
Copy link
Copy Markdown
Contributor

@bjorn3 bjorn3 commented Mar 13, 2025

It didn't support non-x86_64 targets anyway and adds a fair amount of complexity. There is no benefit to PIC code when jitting either.

Follow up to #10345
Closes #2735

@bjorn3
Copy link
Copy Markdown
Contributor Author

bjorn3 commented Mar 13, 2025

Marked as draft as I would like to first see the next Cranelift version get released for #10347 to know for sure that cg_clif works with !is_pic in the jit mode.

@bjorn3
Copy link
Copy Markdown
Contributor Author

bjorn3 commented Mar 13, 2025

Spurious CI failure?

@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Mar 13, 2025
@primoly
Copy link
Copy Markdown
Contributor

primoly commented Mar 13, 2025

The CI failure originates from #10387. The tests introduced there fail only sometimes. I would love to fix the issue, but since I don’t know the cause, it would just be random shots in the dark.

@alexcrichton
Copy link
Copy Markdown
Member

I believe I've tracked down that sissue and @primoly I don't think the fault actually lies in your PR, it's preexisting infrastructural problems with the tests. I'll re-run the build here.

@alexcrichton
Copy link
Copy Markdown
Member

(specifically #10394 should solve that flaky test)

It didn't support non-x86_64 targets anyway and adds a fair amount of
complexity. There is no benefit to PIC code when jitting either.
@bjorn3 bjorn3 force-pushed the remove_cranelift_jit_pic_handling branch from 8fe23f4 to 8bcc4f6 Compare March 20, 2025 15:48
@bjorn3 bjorn3 marked this pull request as ready for review March 20, 2025 17:03
@bjorn3 bjorn3 requested a review from a team as a code owner March 20, 2025 17:03
@bjorn3 bjorn3 requested review from abrown and removed request for a team March 20, 2025 17:03
@bjorn3
Copy link
Copy Markdown
Contributor Author

bjorn3 commented Mar 20, 2025

cg_clif has updated to Cranelift 0.118 and disabled is_pic usage for the JIT mode without issues.

@abrown abrown added this pull request to the merge queue Mar 20, 2025
Merged via the queue into bytecodealliance:main with commit 9838876 Mar 20, 2025
40 checks passed
@bjorn3 bjorn3 deleted the remove_cranelift_jit_pic_handling branch March 20, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support PLT entries in cranelift-jit crate on aarch64

4 participants