Skip to content

RISC-V: use PC-relative addressing instead of absolute addressing #550

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
May 29, 2025

Conversation

xavierleroy
Copy link
Contributor

This should support the "medium any" code model, where executables can be loaded at addresses above 2Gb. It might also reduce the number of link-time relocations.

This should support the "medium any" code model, where executables can
be loaded at addresses above 2Gb.  It might also reduce the number of
link-time relocations.

Also: use `lla` (load local address -> auipc/addi) instead of `la` for
all local symbols, in preparation for better PIC support.
@xavierleroy xavierleroy merged commit b4fd05c into master May 29, 2025
7 checks passed
@xavierleroy xavierleroy deleted the riscV-PC-relative branch May 29, 2025 09:43
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.

1 participant