Skip to content

Conversation

@kvpanch
Copy link

@kvpanch kvpanch commented Nov 17, 2025

Unlike SetAddress and FixedAddPc which set absolute addresses (and thus need relocation handling), these instructions work by advancing the PC relative to the current address

Unlike `SetAddress` and `FixedAddPc` which set absolute addresses (and thus
need relocation handling), these instructions work by advancing the PC relative
to the current address
@kvpanch kvpanch requested review from koute and xermicus November 17, 2025 21:43
@kvpanch
Copy link
Author

kvpanch commented Nov 17, 2025

jfyi: this will unblock switching to LLVM 21 in revive compiler.

@kvpanch kvpanch changed the title Suppoer AdvancePc and ConstantAddPc Support AdvancePc and ConstantAddPc Nov 17, 2025
@koute
Copy link
Collaborator

koute commented Nov 18, 2025

The last I touched this code was ages ago, but unless I'm missing something these also might need relocation handling like FixedAddPc does (which doesn't set an absolute address and it also advances the PC relative to the current address, contrary to what you wrote in the PC description).

For reference, can you upload an example binary which uses these?

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.

3 participants