From 46fd42e3be5013b968cdbfe3afa2793db0a41dec Mon Sep 17 00:00:00 2001 From: Kuan-Lin Chen Date: Wed, 22 May 2024 16:36:22 +0800 Subject: [PATCH] Add note for range extension thunk. --- riscv-elf.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/riscv-elf.adoc b/riscv-elf.adoc index 93c0702b..5793d6bd 100644 --- a/riscv-elf.adoc +++ b/riscv-elf.adoc @@ -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