* [PATCH] LoongArch: Add new relocation types.
@ 2023-01-31 13:32 caiyinyu
2023-01-31 14:23 ` Xi Ruoyao
0 siblings, 1 reply; 3+ messages in thread
From: caiyinyu @ 2023-01-31 13:32 UTC (permalink / raw)
To: libc-alpha; +Cc: adhemerval.zanella, i.swmail, xry111, wuxiaotian, caiyinyu
---
elf/elf.h | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/elf/elf.h b/elf/elf.h
index b6a75c13a8..4bc0e4299c 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -4159,6 +4159,46 @@ enum
#define R_LARCH_GNU_VTINHERIT 57
#define R_LARCH_GNU_VTENTRY 58
+/* reserved 59-63 */
+
+#define R_LARCH_B16 64
+#define R_LARCH_B21 65
+#define R_LARCH_B26 66
+#define R_LARCH_ABS_HI20 67
+#define R_LARCH_ABS_LO12 68
+#define R_LARCH_ABS64_LO20 69
+#define R_LARCH_ABS64_HI12 70
+#define R_LARCH_PCALA_HI20 71
+#define R_LARCH_PCALA_LO12 72
+#define R_LARCH_PCALA64_LO20 73
+#define R_LARCH_PCALA64_HI12 74
+#define R_LARCH_GOT_PC_HI20 75
+#define R_LARCH_GOT_PC_LO12 76
+#define R_LARCH_GOT64_PC_LO20 77
+#define R_LARCH_GOT64_PC_HI12 78
+#define R_LARCH_GOT_HI20 79
+#define R_LARCH_GOT_LO12 80
+#define R_LARCH_GOT64_LO20 81
+#define R_LARCH_GOT64_HI12 82
+#define R_LARCH_TLS_LE_HI20 83
+#define R_LARCH_TLS_LE_LO12 84
+#define R_LARCH_TLS_LE64_LO20 85
+#define R_LARCH_TLS_LE64_HI12 86
+#define R_LARCH_TLS_IE_PC_HI20 87
+#define R_LARCH_TLS_IE_PC_LO12 88
+#define R_LARCH_TLS_IE64_PC_LO20 89
+#define R_LARCH_TLS_IE64_PC_HI12 90
+#define R_LARCH_TLS_IE_HI20 91
+#define R_LARCH_TLS_IE_LO12 92
+#define R_LARCH_TLS_IE64_LO20 93
+#define R_LARCH_TLS_IE64_HI12 94
+#define R_LARCH_TLS_LD_PC_HI20 95
+#define R_LARCH_TLS_LD_HI20 96
+#define R_LARCH_TLS_GD_PC_HI20 97
+#define R_LARCH_TLS_GD_HI20 98
+#define R_LARCH_32_PCREL 99
+#define R_LARCH_RELAX 100
+
/* ARC specific declarations. */
/* Processor specific flags for the Ehdr e_flags field. */
--
2.31.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] LoongArch: Add new relocation types.
2023-01-31 13:32 [PATCH] LoongArch: Add new relocation types caiyinyu
@ 2023-01-31 14:23 ` Xi Ruoyao
2023-01-31 20:31 ` Carlos O'Donell
0 siblings, 1 reply; 3+ messages in thread
From: Xi Ruoyao @ 2023-01-31 14:23 UTC (permalink / raw)
To: caiyinyu, libc-alpha; +Cc: adhemerval.zanella, i.swmail, wuxiaotian
On Tue, 2023-01-31 at 21:32 +0800, caiyinyu wrote:
> ---
> elf/elf.h | 40 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> diff --git a/elf/elf.h b/elf/elf.h
> index b6a75c13a8..4bc0e4299c 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -4159,6 +4159,46 @@ enum
> #define R_LARCH_GNU_VTINHERIT 57
> #define R_LARCH_GNU_VTENTRY 58
>
> +/* reserved 59-63 */
> +
> +#define R_LARCH_B16 64
> +#define R_LARCH_B21 65
> +#define R_LARCH_B26 66
> +#define R_LARCH_ABS_HI20 67
> +#define R_LARCH_ABS_LO12 68
> +#define R_LARCH_ABS64_LO20 69
> +#define R_LARCH_ABS64_HI12 70
> +#define R_LARCH_PCALA_HI20 71
> +#define R_LARCH_PCALA_LO12 72
> +#define R_LARCH_PCALA64_LO20 73
> +#define R_LARCH_PCALA64_HI12 74
> +#define R_LARCH_GOT_PC_HI20 75
> +#define R_LARCH_GOT_PC_LO12 76
> +#define R_LARCH_GOT64_PC_LO20 77
> +#define R_LARCH_GOT64_PC_HI12 78
> +#define R_LARCH_GOT_HI20 79
> +#define R_LARCH_GOT_LO12 80
> +#define R_LARCH_GOT64_LO20 81
> +#define R_LARCH_GOT64_HI12 82
> +#define R_LARCH_TLS_LE_HI20 83
> +#define R_LARCH_TLS_LE_LO12 84
> +#define R_LARCH_TLS_LE64_LO20 85
> +#define R_LARCH_TLS_LE64_HI12 86
> +#define R_LARCH_TLS_IE_PC_HI20 87
> +#define R_LARCH_TLS_IE_PC_LO12 88
> +#define R_LARCH_TLS_IE64_PC_LO20 89
> +#define R_LARCH_TLS_IE64_PC_HI12 90
> +#define R_LARCH_TLS_IE_HI20 91
> +#define R_LARCH_TLS_IE_LO12 92
> +#define R_LARCH_TLS_IE64_LO20 93
> +#define R_LARCH_TLS_IE64_HI12 94
> +#define R_LARCH_TLS_LD_PC_HI20 95
> +#define R_LARCH_TLS_LD_HI20 96
> +#define R_LARCH_TLS_GD_PC_HI20 97
> +#define R_LARCH_TLS_GD_HI20 98
> +#define R_LARCH_32_PCREL 99
> +#define R_LARCH_RELAX 100
> +
Compared with BFD code with eyesight, LGTM.
Pushing the change before Glibc-2.37 release will require release
manager approval though.
> /* ARC specific declarations. */
>
> /* Processor specific flags for the Ehdr e_flags field. */
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] LoongArch: Add new relocation types.
2023-01-31 14:23 ` Xi Ruoyao
@ 2023-01-31 20:31 ` Carlos O'Donell
0 siblings, 0 replies; 3+ messages in thread
From: Carlos O'Donell @ 2023-01-31 20:31 UTC (permalink / raw)
To: Xi Ruoyao, caiyinyu, libc-alpha; +Cc: adhemerval.zanella, i.swmail, wuxiaotian
On 1/31/23 09:23, Xi Ruoyao via Libc-alpha wrote:
> On Tue, 2023-01-31 at 21:32 +0800, caiyinyu wrote:
>> ---
>> elf/elf.h | 40 ++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 40 insertions(+)
>>
>> diff --git a/elf/elf.h b/elf/elf.h
>> index b6a75c13a8..4bc0e4299c 100644
>> --- a/elf/elf.h
>> +++ b/elf/elf.h
>> @@ -4159,6 +4159,46 @@ enum
>> #define R_LARCH_GNU_VTINHERIT 57
>> #define R_LARCH_GNU_VTENTRY 58
>>
>> +/* reserved 59-63 */
>> +
>> +#define R_LARCH_B16 64
>> +#define R_LARCH_B21 65
>> +#define R_LARCH_B26 66
>> +#define R_LARCH_ABS_HI20 67
>> +#define R_LARCH_ABS_LO12 68
>> +#define R_LARCH_ABS64_LO20 69
>> +#define R_LARCH_ABS64_HI12 70
>> +#define R_LARCH_PCALA_HI20 71
>> +#define R_LARCH_PCALA_LO12 72
>> +#define R_LARCH_PCALA64_LO20 73
>> +#define R_LARCH_PCALA64_HI12 74
>> +#define R_LARCH_GOT_PC_HI20 75
>> +#define R_LARCH_GOT_PC_LO12 76
>> +#define R_LARCH_GOT64_PC_LO20 77
>> +#define R_LARCH_GOT64_PC_HI12 78
>> +#define R_LARCH_GOT_HI20 79
>> +#define R_LARCH_GOT_LO12 80
>> +#define R_LARCH_GOT64_LO20 81
>> +#define R_LARCH_GOT64_HI12 82
>> +#define R_LARCH_TLS_LE_HI20 83
>> +#define R_LARCH_TLS_LE_LO12 84
>> +#define R_LARCH_TLS_LE64_LO20 85
>> +#define R_LARCH_TLS_LE64_HI12 86
>> +#define R_LARCH_TLS_IE_PC_HI20 87
>> +#define R_LARCH_TLS_IE_PC_LO12 88
>> +#define R_LARCH_TLS_IE64_PC_LO20 89
>> +#define R_LARCH_TLS_IE64_PC_HI12 90
>> +#define R_LARCH_TLS_IE_HI20 91
>> +#define R_LARCH_TLS_IE_LO12 92
>> +#define R_LARCH_TLS_IE64_LO20 93
>> +#define R_LARCH_TLS_IE64_HI12 94
>> +#define R_LARCH_TLS_LD_PC_HI20 95
>> +#define R_LARCH_TLS_LD_HI20 96
>> +#define R_LARCH_TLS_GD_PC_HI20 97
>> +#define R_LARCH_TLS_GD_HI20 98
>> +#define R_LARCH_32_PCREL 99
>> +#define R_LARCH_RELAX 100
>> +
>
> Compared with BFD code with eyesight, LGTM.
>
> Pushing the change before Glibc-2.37 release will require release
> manager approval though.
This will have to wait for glibc 2.38 (next development cycle which starts in ~24hrs :-))
>> /* ARC specific declarations. */
>>
>> /* Processor specific flags for the Ehdr e_flags field. */
>
--
Cheers,
Carlos.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-31 20:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 13:32 [PATCH] LoongArch: Add new relocation types caiyinyu
2023-01-31 14:23 ` Xi Ruoyao
2023-01-31 20:31 ` Carlos O'Donell
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 read-only IMAP folder(s) and NNTP newsgroup(s).