Skip to content

Commit

Permalink
Add note for range extension thunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuan-Lin Chen committed May 22, 2024
1 parent 5396750 commit 46fd42e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions riscv-elf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ NOTE: Same as getting address of symbol, each pool entry has to be located
within the range between -2GiB and +2GiB from its access intructions. The
function call can reach the whole 64-bit address space.

NOTE: The code generation of function call may be changed after the range
extension thunk is implemented. The compiler can emit `call` directly,
and leave the model variation to the linker which could decide to jump
via the literal pool or not.

[,asm]
----
# Function call
Expand Down

0 comments on commit 46fd42e

Please sign in to comment.