Skip to content

Commit fc00ad4

Browse files
author
Jim Wilson
authored
Merge pull request #115 from Nelson1225/nelson-modified
Add pc-relative relocation for FDE initial location.
2 parents 3067af8 + 1c44f00 commit fc00ad4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

riscv-elf.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ Enum | ELF Reloc Type | Description | Details
444444
54 | R_RISCV_SET8 | Local label subtraction |
445445
55 | R_RISCV_SET16 | Local label subtraction |
446446
56 | R_RISCV_SET32 | Local label subtraction |
447-
57-191 | *Reserved* | Reserved for future standard use |
447+
57 | R_RISCV_32_PCREL | PC-relative reference | word32 = S + A - PC
448+
58-191 | *Reserved* | Reserved for future standard use |
448449
192-255 | *Reserved* | Reserved for nonstandard ABI extensions |
449450

450451
Nonstandard extensions are free to use relocation numbers 192-255 for any

0 commit comments

Comments
 (0)