From 5396750924cfe03debfb9a71336b655569de3e2a Mon Sep 17 00:00:00 2001 From: Kuan-Lin Chen Date: Mon, 22 Apr 2024 14:22:54 +0800 Subject: [PATCH] Avoid implying code and literal to be adjacent. --- riscv-elf.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/riscv-elf.adoc b/riscv-elf.adoc index 50aeea0..93c0702 100644 --- a/riscv-elf.adoc +++ b/riscv-elf.adoc @@ -142,6 +142,7 @@ is appeneded in .text section or put into .rodata section. # Literal pool .LCPI0: .8byte symbol + ... .Ltmp0: auipc a0, %pcrel_hi(.LCPI0) ld a0, %pcrel_lo(.Ltmp0)(a0) ---- @@ -161,6 +162,7 @@ function call can reach the whole 64-bit address space. # Literal pool .LCPI1: .8byte function + ... .Ltmp1: auipc a0, %pcrel_hi(.LCPI1) ld a0, %pcrel_lo(.Ltmp1)(a0) jalr a0