git: f22100012776 - main - elf: Remove R_RISCV_[GT]PREL_[IS] relocation defines

Jessica Clarke jrtc27 at FreeBSD.org
Tue Jul 20 05:14:19 UTC 2021


The branch main has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=f221000127767d33ea06d3a00e731c0164f9a70f

commit f221000127767d33ea06d3a00e731c0164f9a70f
Author:     Jessica Clarke <jrtc27 at FreeBSD.org>
AuthorDate: 2021-07-20 05:13:43 +0000
Commit:     Jessica Clarke <jrtc27 at FreeBSD.org>
CommitDate: 2021-07-20 05:13:43 +0000

    elf: Remove R_RISCV_[GT]PREL_[IS] relocation defines
    
    These were internal binutils relocations that have no way to be
    generated in assembly nor will ever be seen in the output, and so should
    never have been defined in the psABI in the first place. They have
    therefore been removed from the spec as of [1], so do so here too.
    
    [1] https://github.com/riscv/riscv-elf-psabi-doc/commit/44f98e0fd8104def00f2a5a8d94b23dd647d18fb
---
 sys/sys/elf_common.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index 76bda8f71f3b..d362f51ed833 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -1350,10 +1350,6 @@ typedef struct {
 #define	R_RISCV_RVC_BRANCH	44
 #define	R_RISCV_RVC_JUMP	45
 #define	R_RISCV_RVC_LUI		46
-#define	R_RISCV_GPREL_I		47
-#define	R_RISCV_GPREL_S		48
-#define	R_RISCV_TPREL_I		49
-#define	R_RISCV_TPREL_S		50
 #define	R_RISCV_RELAX		51
 #define	R_RISCV_SUB6		52
 #define	R_RISCV_SET6		53


More information about the dev-commits-src-main mailing list