Skip to content

Commit 5396750

Browse files
author
Kuan-Lin Chen
committed
Avoid implying code and literal to be adjacent.
1 parent af3126c commit 5396750

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

riscv-elf.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ is appeneded in .text section or put into .rodata section.
142142
# Literal pool
143143
.LCPI0:
144144
.8byte symbol
145+
...
145146
.Ltmp0: auipc a0, %pcrel_hi(.LCPI0)
146147
ld a0, %pcrel_lo(.Ltmp0)(a0)
147148
----
@@ -161,6 +162,7 @@ function call can reach the whole 64-bit address space.
161162
# Literal pool
162163
.LCPI1:
163164
.8byte function
165+
...
164166
.Ltmp1: auipc a0, %pcrel_hi(.LCPI1)
165167
ld a0, %pcrel_lo(.Ltmp1)(a0)
166168
jalr a0

0 commit comments

Comments
 (0)