Skip to content

[JITLink][AArch64] Add LD64_GOTPAGE_LO15 rel support #100854

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

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

yota9
Copy link
Member

@yota9 yota9 commented Jul 27, 2024

This relocation is used in order to address GOT entries using 15 bit
offset in ldr instruction. The offset is calculated relative to GOT
section page address.

@yota9 yota9 requested a review from lhames July 27, 2024 05:50
@yota9 yota9 force-pushed the jitlink_ld64_gotp_lo15 branch from 40f1708 to dc971be Compare July 27, 2024 21:14
@yota9
Copy link
Member Author

yota9 commented Aug 2, 2024

Ping

@lhames
Copy link
Contributor

lhames commented Aug 6, 2024

Ping

This is looking excellent. Sorry for the delayed review -- I have a couple of small comments, but I think this should be able to land once they're addressed.

@yota9
Copy link
Member Author

yota9 commented Aug 6, 2024

Thank you for your review @lhames ! I would try to fix the comments ASAP!

This relocation is used in order to address GOT entries using 15 bit
offset in ldr instruction. The offset is calculated relative to GOT
section page address.
@yota9 yota9 force-pushed the jitlink_ld64_gotp_lo15 branch from dc971be to 00a67e0 Compare August 6, 2024 11:48
@yota9
Copy link
Member Author

yota9 commented Aug 6, 2024

@lhames Thanks for your comments! As for for passing GOTsymbol to applyFixup - I've just copy-pasted x86_64 code for searching GOT symbols (with couple of adjustments) , it seems to be right :)

Copy link
Contributor

@lhames lhames left a comment

Choose a reason for hiding this comment

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

Thanks for addressing those comments. This looks great!

Please go ahead and merge, or let me know and I can merge for you if you don't have permission yet.

@yota9 yota9 merged commit 199c400 into llvm:main Aug 7, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants