Skip to content

Commit 537ef5d

Browse files
author
Derek Hower
committed
Mock-up of a relocation
1 parent b5050b0 commit 537ef5d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$schema: reolaction_schema.json#
2+
kind: relocation
3+
variable_name: "I-Type"
4+
relocation_variable_description: Specifies a field as the immediate field in an I-type instruction
5+
relocation_type: R_RISCV_PCREL_LO12_I
6+
relocation_description: |
7+
Low 12 bits of a 32-bit PC-relative,
8+
`%pcrel_lo(address of %pcrel_hi)`, the
9+
addend must be 0.
10+
calculation: S - P # calculation, using symbols defined in ABI doc 8.4.1
11+
number: 24 # the number of the relocation, encoded in the r_info field
12+
type: static # relocation type (static, dynamic, both)
13+
14+

0 commit comments

Comments
 (0)