Skip to content

Commit af3126c

Browse files
author
Kuan-Lin Chen
committed
Fix the asm indent and 64-bit diretives.
1 parent c9e7740 commit af3126c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

riscv-elf.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ is appeneded in .text section or put into .rodata section.
140140
----
141141
# Get address of a symbol
142142
# Literal pool
143-
.LCPI0:
144-
.dword symbol
143+
.LCPI0:
144+
.8byte symbol
145145
.Ltmp0: auipc a0, %pcrel_hi(.LCPI0)
146146
ld a0, %pcrel_lo(.Ltmp0)(a0)
147147
----
@@ -159,8 +159,8 @@ function call can reach the whole 64-bit address space.
159159
----
160160
# Function call
161161
# Literal pool
162-
.LCPI1:
163-
.dword function
162+
.LCPI1:
163+
.8byte function
164164
.Ltmp1: auipc a0, %pcrel_hi(.LCPI1)
165165
ld a0, %pcrel_lo(.Ltmp1)(a0)
166166
jalr a0

0 commit comments

Comments
 (0)