[PATCH v3 04/19] elf: Define LoongArch bits
Yao Zi <[email protected]>
| Newsgroups | org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
From: Jiaxun Yang <[email protected]> They all come from glibc's elf.h Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Yao Zi <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]> --- Changed from v2 - Collect tags - Drop a redundant blank line between /* Version */ comment and EM_LOONGARCH definition Changed from v1 - Re-title to "elf: Define LoongArch bits" (with the semicolon) - No function changes involved include/elf.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/elf.h b/include/elf.h index b88e6cf4032b..67d519cd9174 100644 --- a/include/elf.h +++ b/include/elf.h @@ -225,7 +225,7 @@ typedef struct { #define EM_MN10300 89 /* Matsushita MN10200 */ #define EM_MN10200 90 /* Matsushita MN10200 */ #define EM_PJ 91 /* picoJava */ -#define EM_NUM 92 /* number of machine types */ +#define EM_LOONGARCH 258 /* LoongArch */ /* Version */ #define EV_NONE 0 /* Invalid */ @@ -705,6 +705,12 @@ unsigned long elf_hash(const unsigned char *name); #define R_RISCV_64 2 #define R_RISCV_RELATIVE 3 +/* LoongArch Relocations */ +#define R_LARCH_NONE 0 +#define R_LARCH_32 1 +#define R_LARCH_64 2 +#define R_LARCH_RELATIVE 3 + #ifndef __ASSEMBLY__ unsigned long bootelf_exec(ulong (*entry)(int, char * const[]), int argc, char *const argv[]); -- 2.55.0