Skip to content

Commit

Permalink
Mock-up of a relocation
Browse files Browse the repository at this point in the history
  • Loading branch information
dhower-qc committed Nov 19, 2024
1 parent b5050b0 commit 537ef5d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/relocation/R_RISCV_PCREL_L012_I.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$schema: reolaction_schema.json#
kind: relocation
variable_name: "I-Type"
relocation_variable_description: Specifies a field as the immediate field in an I-type instruction
relocation_type: R_RISCV_PCREL_LO12_I
relocation_description: |
Low 12 bits of a 32-bit PC-relative,
`%pcrel_lo(address of %pcrel_hi)`, the
addend must be 0.
calculation: S - P # calculation, using symbols defined in ABI doc 8.4.1
number: 24 # the number of the relocation, encoded in the r_info field
type: static # relocation type (static, dynamic, both)


0 comments on commit 537ef5d

Please sign in to comment.