mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH 0/3] elf.h add new RISC-V relocations.
@ 2023-08-15 22:17 Michal Biesek
  2023-08-15 22:17 ` [musl] [PATCH 1/3] Add dynamic relocation `R_RISCV_IRELATIVE` Michal Biesek
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michal Biesek @ 2023-08-15 22:17 UTC (permalink / raw)
  To: musl; +Cc: Michal Biesek

- R_RISCV_IRELATIVE
- R_RISCV_PLT32
- R_RISCV_SET_ULEB128
- R_RISCV_SUB_ULEB128

Michal Biesek (3):
  Add dynamic relocation `R_RISCV_IRELATIVE`
  Add dynamic relocation `R_RISCV_PLT32`
  Add dynamic relocations `R_RISCV_S(ET,UB)_ULEB128`

 include/elf.h | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [musl] [PATCH 1/3] Add dynamic relocation `R_RISCV_IRELATIVE`
  2023-08-15 22:17 [musl] [PATCH 0/3] elf.h add new RISC-V relocations Michal Biesek
@ 2023-08-15 22:17 ` Michal Biesek
  2023-08-15 22:17 ` [musl] [PATCH 2/3] Add dynamic relocation `R_RISCV_PLT32` Michal Biesek
  2023-08-15 22:17 ` [musl] [PATCH 3/3] Add dynamic relocations `R_RISCV_S(ET,UB)_ULEB128` Michal Biesek
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Biesek @ 2023-08-15 22:17 UTC (permalink / raw)
  To: musl; +Cc: Michal Biesek

see
  riscv-elf-psabi-doc commit f003e4e07c0c0032b60dea218e66f48fd09468d2
  Add dynamic relocation R_RISCV_IRELATIVE

Signed-off-by: Michal Biesek <michalbiesek@gmail.com>
---
 include/elf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/elf.h b/include/elf.h
index 23f2c4bc..b7451f72 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -3292,6 +3292,7 @@ enum
 #define R_RISCV_SET16           55
 #define R_RISCV_SET32           56
 #define R_RISCV_32_PCREL        57
+#define R_RISCV_IRELATIVE       58
 
 #ifdef __cplusplus
 }
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [musl] [PATCH 2/3] Add dynamic relocation `R_RISCV_PLT32`
  2023-08-15 22:17 [musl] [PATCH 0/3] elf.h add new RISC-V relocations Michal Biesek
  2023-08-15 22:17 ` [musl] [PATCH 1/3] Add dynamic relocation `R_RISCV_IRELATIVE` Michal Biesek
@ 2023-08-15 22:17 ` Michal Biesek
  2023-08-15 22:17 ` [musl] [PATCH 3/3] Add dynamic relocations `R_RISCV_S(ET,UB)_ULEB128` Michal Biesek
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Biesek @ 2023-08-15 22:17 UTC (permalink / raw)
  To: musl; +Cc: Michal Biesek

see
  riscv-elf-psabi-doc commit c3f8269c56d8a2f56c2602f2a44175362024ef9c
  Define PLT-generating PC-Relative data relocation

Signed-off-by: Michal Biesek <michalbiesek@gmail.com>
---
 include/elf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/elf.h b/include/elf.h
index b7451f72..ad413427 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -3293,6 +3293,7 @@ enum
 #define R_RISCV_SET32           56
 #define R_RISCV_32_PCREL        57
 #define R_RISCV_IRELATIVE       58
+#define R_RISCV_PLT32           59
 
 #ifdef __cplusplus
 }
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [musl] [PATCH 3/3] Add dynamic relocations `R_RISCV_S(ET,UB)_ULEB128`
  2023-08-15 22:17 [musl] [PATCH 0/3] elf.h add new RISC-V relocations Michal Biesek
  2023-08-15 22:17 ` [musl] [PATCH 1/3] Add dynamic relocation `R_RISCV_IRELATIVE` Michal Biesek
  2023-08-15 22:17 ` [musl] [PATCH 2/3] Add dynamic relocation `R_RISCV_PLT32` Michal Biesek
@ 2023-08-15 22:17 ` Michal Biesek
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Biesek @ 2023-08-15 22:17 UTC (permalink / raw)
  To: musl; +Cc: Michal Biesek

see
  riscv-elf-psabi-doc commit 96d6e190e9fc04a8517f9ff7fb9aed3e9876cbd6
  Define relocations for ULEB128 value: R_RISCV_SET_ULEB128 and
  R_RISCV_SUB_ULEB128

Signed-off-by: Michal Biesek <michalbiesek@gmail.com>
---
 include/elf.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/elf.h b/include/elf.h
index ad413427..39288c16 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -3294,6 +3294,8 @@ enum
 #define R_RISCV_32_PCREL        57
 #define R_RISCV_IRELATIVE       58
 #define R_RISCV_PLT32           59
+#define R_RISCV_SET_ULEB128     60
+#define R_RISCV_SUB_ULEB128     61
 
 #ifdef __cplusplus
 }
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-15 22:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-15 22:17 [musl] [PATCH 0/3] elf.h add new RISC-V relocations Michal Biesek
2023-08-15 22:17 ` [musl] [PATCH 1/3] Add dynamic relocation `R_RISCV_IRELATIVE` Michal Biesek
2023-08-15 22:17 ` [musl] [PATCH 2/3] Add dynamic relocation `R_RISCV_PLT32` Michal Biesek
2023-08-15 22:17 ` [musl] [PATCH 3/3] Add dynamic relocations `R_RISCV_S(ET,UB)_ULEB128` Michal Biesek

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).