-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[JITLink][AArch32] Add support for ELF::R_ARM_THM_MOV{W_PREL_NC,T_PREL} #70364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Though not dependent, assumes PR #70346 being merged. |
9f39f51
to
665de0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this LGTM! It would be good to land this patch and work on the remarks from my inline comments in context of my upcoming PR #71649
@@ -377,12 +377,14 @@ Expected<int64_t> readAddendThumb(LinkGraph &G, Block &B, const Edge &E, | |||
: decodeImmBT4BlT1BlxT2(R.Hi, R.Lo); | |||
|
|||
case Thumb_MovwAbsNC: | |||
case Thumb_MovwPrelNC: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were talking about the opcode checks and duplication in both, code and constants. I've been working on a patch to compensate for it here: #71649 With that the asymmetry in opcode checks will go away. I think we can land this as is.
llvm/test/ExecutionEngine/JITLink/AArch32/ELF_static_thumb_reloc.s
Outdated
Show resolved
Hide resolved
Support for ELF::R_ARM_THM_MOVW_PREL_NC and ELF::R_ARM_THM_MOVT_PREL is added. Move instructions with PC-relative immediates can be handled in Thumb mode with this addition.
665de0a
to
56aa89f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for working on this!
Support for ELF::R_ARM_THM_MOVW_PREL_NC and ELF::R_ARM_THM_MOVT_PREL
is added. Move instructions with PC-relative immediates can be handled in Thumb mode with this addition.