]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libelf: Sync elf.h from glibc.
authorYouling Tang <tangyouling@loongson.cn>
Sat, 1 Apr 2023 06:43:43 +0000 (14:43 +0800)
committerMark Wielaard <mark@klomp.org>
Thu, 6 Apr 2023 22:19:35 +0000 (00:19 +0200)
Adds R_LARCH_*.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
libelf/ChangeLog
libelf/elf.h

index 8cc3c53c250f063cc9ab94fecba4225ba5b2816a..1d5178ca2ef6f33c8c0c0ae44f2b519c84d62de9 100644 (file)
@@ -1,3 +1,7 @@
+2023-04-01  Youling Tang  <tangyouling@loongson.cn>
+
+       * elf.h: Update from glibc.
+
 2023-03-03  Mark Wielaard  <mark@klomp.org>
 
        * libelf.h: Define ELFCOMPRESS_ZSTD if undefined.
index da41bad34b0b799c47c52be0f497bc94fcfe884d..4bc0e4299c3a4c8ffa5a4be077af273a16286ecf 100644 (file)
@@ -1,5 +1,5 @@
 /* This file defines standard ELF types, structures, and macros.
-   Copyright (C) 1995-2022 Free Software Foundation, Inc.
+   Copyright (C) 1995-2023 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -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.  */