elf: Move 32/64bit generic mapping from risc-v/arch_elf.c to elfxx.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-07-08 23:46:46 +08:00
committed by Alan Carvalho de Assis
parent 5849cf71d8
commit 813b652ba5
7 changed files with 98 additions and 113 deletions
+4 -7
View File
@@ -38,13 +38,6 @@
*/
#define EM_ARCH EM_ARM
#define ELF_CLASS ELFCLASS32
#ifdef CONFIG_ENDIAN_BIG
# define ELF_DATA ELFDATA2MSB
#else
# define ELF_DATA ELFDATA2LSB
#endif
/* Table 4-2, ARM-specific e_flags */
@@ -211,6 +204,10 @@
#define R_ARM_THM_TLS_DESCSEQ16 129 /* Thumb16 */
#define R_ARM_THM_TLS_DESCSEQ32 130 /* Thumb32 */
/* Processor specific values for the Phdr p_type field. */
#define PT_ARM_EXIDX (PT_LOPROC + 1) /* ARM unwind segment. */
/* 5.2.1 Platform architecture compatibility data */
#define PT_ARM_ARCHEXT_FMTMSK 0xff000000