Skip to content

cranelift-jit: implement GOT relocations for aarch64#7584

Merged
elliottt merged 1 commit intobytecodealliance:mainfrom
Mrmaxmeier:aarch64-got-relocs
Nov 27, 2023
Merged

cranelift-jit: implement GOT relocations for aarch64#7584
elliottt merged 1 commit intobytecodealliance:mainfrom
Mrmaxmeier:aarch64-got-relocs

Conversation

@Mrmaxmeier
Copy link
Contributor

This is a prerequisite for #2735, but doesn't implement the PLT entries yet.
(I'm using hot function replace, which happens in the GOT but doesn't strictly require the PLT.)

The instruction encoding for adrp is kind of complicated, but re-using existing lowering infrastructure doesn't work well since it's not designed to do partial updates. Xref: #5550, which introduced these relocation types.

@Mrmaxmeier Mrmaxmeier requested a review from a team as a code owner November 27, 2023 16:23
@Mrmaxmeier Mrmaxmeier requested review from elliottt and removed request for a team November 27, 2023 16:23
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Nov 27, 2023
Copy link
Member

@elliottt elliottt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to approve after the offsets are removed, thank you!

Copy link
Member

@elliottt elliottt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@elliottt elliottt added this pull request to the merge queue Nov 27, 2023
Merged via the queue into bytecodealliance:main with commit cd97c9f Nov 27, 2023
@Mrmaxmeier Mrmaxmeier deleted the aarch64-got-relocs branch November 27, 2023 21:07
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.

2 participants